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 # Ignore not supported files
*.d.ts *.d.ts
!module.d.ts
# Ignore precompiled schemas # Ignore precompiled schemas
schemas/**/*.check.js schemas/**/*.check.js

25
module.d.ts vendored
View File

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