KotkoroidK
Denoβ€’14mo agoβ€’
2 replies
Kotkoroid

Types for global variables

I have defined a global variable: globalThis.Args = validateArguments(Deno.args);

Now whenever I use it I get TS error: Element implicitly has an 'any' type because type 'typeof globalThis' has no index signature.deno-ts(7017)

How can I fix this?
Was this page helpful?