Skip to content

Commit f47302e

Browse files
authored
types: fix stats chunk type for rspack-ecosystem-ci (#433)
1 parent c193735 commit f47302e

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/cuddly-clouds-divide.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@rsbuild/shared': patch
3+
---
4+
5+
chore: update stats chunk type

packages/shared/src/types/stats.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export interface StatsAsset {
3333
type: string;
3434
name: string;
3535
size: number;
36-
chunks?: Array<string | number>;
36+
chunks?: Array<string | undefined | null>;
3737
chunkNames?: Array<string | number>;
3838
info: StatsAssetInfo;
3939
}
@@ -49,7 +49,7 @@ interface StatsModule {
4949
identifier?: string;
5050
name?: string;
5151
id?: string;
52-
chunks?: Array<string>;
52+
chunks?: Array<string | undefined | null>;
5353
size?: number;
5454
}
5555

0 commit comments

Comments
 (0)