fix typing of the global

This commit is contained in:
Nuckyz 2024-05-26 19:40:33 -03:00
parent dae3841f10
commit 32a2c90761
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -143,7 +143,7 @@ export type WebpackRequire = ((moduleId: PropertyKey) => Module) & {
/** Get the filename for the js part of a chunk */
u: (this: WebpackRequire, chunkId: PropertyKey) => string;
/** The global object, will likely always be the window */
g: Window;
g: typeof globalThis;
/** Harmony module decorator. Decorates a module as an ES Module, and prevents Node.js "module.exports" from being set */
hmd: (this: WebpackRequire, module: Module) => any;
/** Shorthand for Object.prototype.hasOwnProperty */