type more
This commit is contained in:
parent
c2047e5f3b
commit
4d27643d39
14
src/webpack/wreq.d.ts
vendored
14
src/webpack/wreq.d.ts
vendored
|
@ -15,9 +15,19 @@ export type Module = {
|
||||||
/** exports can be anything, however initially it is always an empty object */
|
/** exports can be anything, however initially it is always an empty object */
|
||||||
export type ModuleFactory = (this: ModuleExports, module: Module, exports: ModuleExports, require: WebpackRequire) => void;
|
export type ModuleFactory = (this: ModuleExports, module: Module, exports: ModuleExports, require: WebpackRequire) => void;
|
||||||
|
|
||||||
|
export type WebpackQueues = unique symbol;
|
||||||
|
export type WebpackExports = unique symbol;
|
||||||
|
export type WebpackError = unique symbol;
|
||||||
|
|
||||||
|
type AsyncModulePromise = Promise<ModuleExports> & {
|
||||||
|
[WebpackQueues]: (fnQueue: ((queue: any[]) => any)) => any;
|
||||||
|
[WebpackExports]: ModuleExports;
|
||||||
|
[WebpackError]?: any;
|
||||||
|
};
|
||||||
|
|
||||||
export type AsyncModuleBody = (
|
export type AsyncModuleBody = (
|
||||||
handleAsyncDependencies: (deps: Promise<any>[]) =>
|
handleAsyncDependencies: (deps: AsyncModulePromise[]) =>
|
||||||
Promise<() => any[]> | (() => any[]),
|
Promise<() => ModuleExports[]> | (() => ModuleExports[]),
|
||||||
asyncResult: (error?: any) => void
|
asyncResult: (error?: any) => void
|
||||||
) => Promise<void>;
|
) => Promise<void>;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue