fix typing of the global
This commit is contained in:
parent
dae3841f10
commit
32a2c90761
2
src/webpack/wreq.d.ts
vendored
2
src/webpack/wreq.d.ts
vendored
|
@ -143,7 +143,7 @@ export type WebpackRequire = ((moduleId: PropertyKey) => Module) & {
|
||||||
/** Get the filename for the js part of a chunk */
|
/** Get the filename for the js part of a chunk */
|
||||||
u: (this: WebpackRequire, chunkId: PropertyKey) => string;
|
u: (this: WebpackRequire, chunkId: PropertyKey) => string;
|
||||||
/** The global object, will likely always be the window */
|
/** 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 */
|
/** 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;
|
hmd: (this: WebpackRequire, module: Module) => any;
|
||||||
/** Shorthand for Object.prototype.hasOwnProperty */
|
/** Shorthand for Object.prototype.hasOwnProperty */
|
||||||
|
|
Loading…
Reference in a new issue