I declare a global variable in typescript something like: global.test = "something" I try to do that I get the error property ‘test’ does not exist on type ‘Global’.
I try to do that I get the error property ‘test’ does not exist on type ‘Global’.
Create a file globals.d.ts
with
interface Global {
test: string;
}
Declaration files : https://basarat.gitbook.io/typescript/docs/types/ambient/d.ts.html
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments