From 32a2c90761212da2d497fa0d302a01625fdd86f1 Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Sun, 26 May 2024 19:40:33 -0300 Subject: [PATCH] fix typing of the global --- src/webpack/wreq.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webpack/wreq.d.ts b/src/webpack/wreq.d.ts index 85f2c9ab7..e155f20cd 100644 --- a/src/webpack/wreq.d.ts +++ b/src/webpack/wreq.d.ts @@ -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 */