mirror of
https://github.com/facebook/docusaurus.git
synced 2025-04-28 17:57:48 +02:00
chore: upgrade to TS 5.7 (#10725)
This commit is contained in:
parent
fb7ad2c1bb
commit
1777b14566
3 changed files with 8 additions and 3 deletions
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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});
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue