Skip to content

Commit 40482a2

Browse files
committed
Upgrade TypeScript to v6
Add module declarations for side-effect imports (*.css, moment/locale/*) required by stricter TS 6 checking.
1 parent af9d632 commit 40482a2

4 files changed

Lines changed: 10 additions & 6 deletions

File tree

global.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ declare module '*.ttf' {
3535
export default value;
3636
}
3737

38+
declare module '*.css';
39+
declare module 'moment/locale/*';
40+
3841
declare var __DEV__: boolean;
3942
declare var __CONF__: any;
4043
declare var __THEME__: string;

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"stream-browserify": "^3.0.0",
7676
"style-loader": "^4.0.0",
7777
"styled-components": "^6.3.11",
78-
"typescript": "^5.0.0",
78+
"typescript": "^6.0.2",
7979
"util": "^0.12.5",
8080
"webpack": "^5.105.3",
8181
"webpack-cli": "^7.0.2",

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"noImplicitAny": false,
1111
"esModuleInterop": true,
1212
"skipLibCheck": true,
13-
"noEmit": true
13+
"noEmit": true,
14+
"ignoreDeprecations": "6.0"
1415
},
1516
"include": ["src/**/*", "global.d.ts"],
1617
"exclude": ["node_modules", "functions"]

0 commit comments

Comments
 (0)