refactor(types): fix
This commit is contained in:
parent
6860a91f4b
commit
ed31965f4a
|
@ -21,6 +21,7 @@ coverage/
|
|||
|
||||
# Ignore not supported files
|
||||
*.d.ts
|
||||
!module.d.ts
|
||||
|
||||
# Ignore precompiled schemas
|
||||
schemas/**/*.check.js
|
||||
|
|
|
@ -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 =
|
||||
|
|
Loading…
Reference in New Issue