I'm trying to declare some global window functions for my typescript plugin. The functions are defined in the browser and i want them to be declared in the code aswell.
For some odd reason my code cant find those declarations from that file. The declarations are in @types/globals.d.ts file.
Do i need to configure the tsconfig.json file or something like that. Cant seem to find a straight answer from anywhere else.
Just in case, here is my tsconfig.json file
{
"compilerOptions": {
"outDir": "./dist/",
"noImplicitAny": true,
"module": "es6",
"target": "es5",
"strict": true,
"sourceMap": true,
"allowJs": true,
"moduleResolution": "node"
}
}
globals.d.ts
index.ts
Here's the error message
Thanks in advance.


