mirror of https://github.com/webpack/webpack.git
refactor(types): fix
This commit is contained in:
parent
6860a91f4b
commit
ed31965f4a
|
@ -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
|
||||||
|
|
|
@ -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 =
|
||||||
|
|
Loading…
Reference in New Issue