From 1777b14566c881366dc345cddcb4352a931b780a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lorber?= Date: Thu, 28 Nov 2024 16:51:42 +0100 Subject: [PATCH] chore: upgrade to TS 5.7 (#10725) --- package.json | 2 +- website/_dogfooding/_pages tests/crashTest.tsx | 4 ++-- yarn.lock | 5 +++++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 5f5385c56d46..aecf0f4b3652 100644 --- a/package.json +++ b/package.json @@ -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" } } diff --git a/website/_dogfooding/_pages tests/crashTest.tsx b/website/_dogfooding/_pages tests/crashTest.tsx index 462a680fb1a5..331b5ac7afbc 100644 --- a/website/_dogfooding/_pages tests/crashTest.tsx +++ b/website/_dogfooding/_pages tests/crashTest.tsx @@ -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}); } diff --git a/yarn.lock b/yarn.lock index 1ead5c589d83..3e31547793d2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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"