What's the correct way to use typeof globalThis
? No shortcuts please.
interface CustomNodeJsGlobal extends NodeJS.Global {
foo: {
bar: string | null
}
}
This obviously will give: Namespace 'NodeJS' has no exported member 'Global'.ts(2694)