Skip to content

Commit 1777b14

Browse files
authored
chore: upgrade to TS 5.7 (#10725)
1 parent fb7ad2c commit 1777b14

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,6 @@
123123
"stylelint": "^14.16.1",
124124
"stylelint-config-prettier": "^9.0.5",
125125
"stylelint-config-standard": "^29.0.0",
126-
"typescript": "~5.6.2"
126+
"typescript": "~5.7.2"
127127
}
128128
}

website/_dogfooding/_pages tests/crashTest.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ function useBoom(): boolean {
1818
return (customFields as {crashTest?: boolean}).crashTest ?? false;
1919
}
2020

21-
function boomRoot() {
21+
function boomRoot(): never {
2222
throw new Error('Boom root');
2323
}
2424

2525
function boomParent() {
2626
try {
27-
boomRoot();
27+
return boomRoot();
2828
} catch (err) {
2929
throw new Error('Boom parent', {cause: err as Error});
3030
}

yarn.lock

+5
Original file line numberDiff line numberDiff line change
@@ -17642,6 +17642,11 @@ typescript@~5.6.2:
1764217642
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.6.3.tgz#5f3449e31c9d94febb17de03cc081dd56d81db5b"
1764317643
integrity sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==
1764417644

17645+
typescript@~5.7.2:
17646+
version "5.7.2"
17647+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.7.2.tgz#3169cf8c4c8a828cde53ba9ecb3d2b1d5dd67be6"
17648+
integrity sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg==
17649+
1764517650
ufo@^1.5.3:
1764617651
version "1.5.4"
1764717652
resolved "https://registry.yarnpkg.com/ufo/-/ufo-1.5.4.tgz#16d6949674ca0c9e0fbbae1fa20a71d7b1ded754"

0 commit comments

Comments
 (0)