type more

This commit is contained in:
Nuckyz 2024-05-26 19:37:47 -03:00
parent c2047e5f3b
commit 4d27643d39
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

14
src/webpack/wreq.d.ts vendored
View file

@ -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>;