使用typeof globalThis的正确方法是什么?请不要走捷径。interface CustomNodeJsGlobal extends NodeJS.Global { bar: string | null} 这显然会给出:Namespace'NodeJS' has no exported member 'Global'.ts(2694)
如何从类型记录界面导入函数? public foo():number{...}}
我试过使用import =、import require和import {} from as,但是都没有用我得到了not a module和imported type used as a value,但是从我看到的解决方案来看,我似乎需要添加一个无法更改的导出或更改代码。