i am trying to access the globalThis
property, but get the error:
Element implicitly has an 'any' type because type 'typeof globalThis' has no index signature`.
// both getting...
if (!globalThis.foo) {}
// and setting...
globalThis.foo = 'bar
the only thing i can find online about this, refers to using window
, and provides declarations to support it, but not for globalThis. anyone know how to support this?