Skip to content

Commit

Permalink
chore: upgrade to TS 5.7 (facebook#10725)
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber authored Nov 28, 2024
1 parent fb7ad2c commit 1777b14
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,6 @@
"stylelint": "^14.16.1",
"stylelint-config-prettier": "^9.0.5",
"stylelint-config-standard": "^29.0.0",
"typescript": "~5.6.2"
"typescript": "~5.7.2"
}
}
4 changes: 2 additions & 2 deletions website/_dogfooding/_pages tests/crashTest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ function useBoom(): boolean {
return (customFields as {crashTest?: boolean}).crashTest ?? false;
}

function boomRoot() {
function boomRoot(): never {
throw new Error('Boom root');
}

function boomParent() {
try {
boomRoot();
return boomRoot();
} catch (err) {
throw new Error('Boom parent', {cause: err as Error});
}
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -17642,6 +17642,11 @@ typescript@~5.6.2:
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.6.3.tgz#5f3449e31c9d94febb17de03cc081dd56d81db5b"
integrity sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==

typescript@~5.7.2:
version "5.7.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.7.2.tgz#3169cf8c4c8a828cde53ba9ecb3d2b1d5dd67be6"
integrity sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg==

ufo@^1.5.3:
version "1.5.4"
resolved "https://registry.yarnpkg.com/ufo/-/ufo-1.5.4.tgz#16d6949674ca0c9e0fbbae1fa20a71d7b1ded754"
Expand Down

0 comments on commit 1777b14

Please sign in to comment.