Answers for "use globalthis variable typescript"

1

typescript var global: typeof globalThis

npm i -D @types/[email protected]
Posted by: Guest on August-07-2021
0

typescript globalThis

// @ts-ignore
    console.log("globalThis.myVar: "+globalThis.myVar);
	// This will ignore the error typescript gives when using globalThis
Posted by: Guest on August-25-2021

Code answers related to "use globalthis variable typescript"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language