Skip to content

Commit ed31965

Browse files
refactor(types): fix
1 parent 6860a91 commit ed31965

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ coverage/
2121

2222
# Ignore not supported files
2323
*.d.ts
24+
!module.d.ts
2425

2526
# Ignore precompiled schemas
2627
schemas/**/*.check.js

module.d.ts

+10-13
Original file line numberDiff line numberDiff line change
@@ -3,47 +3,44 @@ declare namespace webpack {
33
| {
44
type: "declined";
55
/** The module in question. */
6-
moduleId: number;
6+
moduleId: number | string;
77
/** the chain from where the update was propagated. */
8-
chain: number[];
8+
chain: (number | string)[];
99
/** the module id of the declining parent */
10-
parentId: number;
11-
moduleId: number | string;
10+
parentId: number | string;
1211
}
1312
| {
1413
type: "self-declined";
1514
/** The module in question. */
1615
moduleId: number | string;
1716
/** the chain from where the update was propagated. */
18-
chain: number[];
17+
chain: (number | string)[];
1918
};
2019

2120
type UnacceptedEvent = {
2221
type: "unaccepted";
2322
/** The module in question. */
24-
moduleId: number;
23+
moduleId: number | string;
2524
/** the chain from where the update was propagated. */
26-
chain: number[];
25+
chain: (number | string)[];
2726
};
2827

2928
type AcceptedEvent = {
3029
type: "accepted";
3130
/** The module in question. */
32-
moduleId: number;
33-
/** the chain from where the update was propagated. */
34-
chain: number[];
31+
moduleId: number | string;
3532
/** the modules that are outdated and will be disposed */
36-
outdatedModules: number[];
33+
outdatedModules: (number | string)[];
3734
/** the accepted dependencies that are outdated */
3835
outdatedDependencies: {
39-
[id: number]: number[];
36+
[id: number]: (number | string)[];
4037
};
4138
};
4239

4340
type DisposedEvent = {
4441
type: "disposed";
4542
/** The module in question. */
46-
moduleId: number;
43+
moduleId: number | string;
4744
};
4845

4946
type ErroredEvent =

0 commit comments

Comments
 (0)