D
Deno
Types for global variables - Deno
K
Deno
β’
16mo ago
β’
2 replies
Kotkoroid
Types for global variables
I have defined a global variable
:
globalThis.Args = validateArguments(Deno.args);
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
?
Deno
Join
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
How to publish global types with JSR?
R
rezi99 / help
2y ago
Vite plugin's global variables are `undefined` when using Deno
J
j4 / help
2y ago
Fresh: global state
M
martpet / help
3y ago