refactor(types): fix

This commit is contained in:
alexander.akait 2023-05-16 19:05:43 +03:00
parent 6860a91f4b
commit ed31965f4a
2 changed files with 12 additions and 14 deletions

View File

@ -21,6 +21,7 @@ coverage/
# Ignore not supported files
*.d.ts
!module.d.ts
# Ignore precompiled schemas
schemas/**/*.check.js

25
module.d.ts vendored
View File

@ -3,47 +3,44 @@ declare namespace webpack {
| {
type: "declined";
/** The module in question. */
moduleId: number;
/** the chain from where the update was propagated. */
chain: number[];
/** the module id of the declining parent */
parentId: number;
moduleId: number | string;
/** the chain from where the update was propagated. */
chain: (number | string)[];
/** the module id of the declining parent */
parentId: number | string;
}
| {
type: "self-declined";
/** The module in question. */
moduleId: number | string;
/** the chain from where the update was propagated. */
chain: number[];
chain: (number | string)[];
};
type UnacceptedEvent = {
type: "unaccepted";
/** The module in question. */
moduleId: number;
moduleId: number | string;
/** the chain from where the update was propagated. */
chain: number[];
chain: (number | string)[];
};
type AcceptedEvent = {
type: "accepted";
/** The module in question. */
moduleId: number;
/** the chain from where the update was propagated. */
chain: number[];
moduleId: number | string;
/** the modules that are outdated and will be disposed */
outdatedModules: number[];
outdatedModules: (number | string)[];
/** the accepted dependencies that are outdated */
outdatedDependencies: {
[id: number]: number[];
[id: number]: (number | string)[];
};
};
type DisposedEvent = {
type: "disposed";
/** The module in question. */
moduleId: number;
moduleId: number | string;
};
type ErroredEvent =