From 478692f45bb08aa8032cee7775d0200dac2c1a42 Mon Sep 17 00:00:00 2001 From: Felix Mosheev <9304194+felixmosh@users.noreply.github.com> Date: Wed, 26 Jun 2024 14:55:27 +0300 Subject: [PATCH] fix: TS 5.5 ui errors --- package.json | 2 +- packages/ui/src/hooks/useDetailsTabs.tsx | 2 +- yarn.lock | 7 ++++++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index b8b1753a..d565aa5d 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,7 @@ "release-it-yarn-workspaces": "^3.0.0", "ts-jest": "^29.1.1", "ts-node-dev": "^2.0.0", - "typescript": "^5.1.6" + "typescript": "^5.5.2" }, "release-it": { "plugins": { diff --git a/packages/ui/src/hooks/useDetailsTabs.tsx b/packages/ui/src/hooks/useDetailsTabs.tsx index e37ab3a9..289050c9 100644 --- a/packages/ui/src/hooks/useDetailsTabs.tsx +++ b/packages/ui/src/hooks/useDetailsTabs.tsx @@ -16,7 +16,7 @@ export function useDetailsTabs(currentStatus: Status, isJobFailed: boolean) { ); useEffect(() => { - let nextState = availableJobTabs.filter((tab) => tab !== 'Error'); + let nextState: TabsType[] = availableJobTabs.filter((tab) => tab !== 'Error'); if (isJobFailed) { nextState = [...nextState, 'Error']; } else if (currentStatus === STATUSES.failed) { diff --git a/yarn.lock b/yarn.lock index f19699ae..0108ef7a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -14543,11 +14543,16 @@ typedarray@^0.0.6: resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" integrity sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA== -typescript@^5.1.3, typescript@^5.1.6: +typescript@^5.1.3: version "5.2.2" resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.2.2.tgz#5ebb5e5a5b75f085f22bc3f8460fba308310fa78" integrity sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w== +typescript@^5.5.2: + version "5.5.2" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.5.2.tgz#c26f023cb0054e657ce04f72583ea2d85f8d0507" + integrity sha512-NcRtPEOsPFFWjobJEtfihkLCZCXZt/os3zf8nTxjVH3RvTSxjrCamJpbExGvYOF+tFHc3pA65qpdwPbzjohhew== + uc.micro@^2.0.0, uc.micro@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/uc.micro/-/uc.micro-2.1.0.tgz#f8d3f7d0ec4c3dea35a7e3c8efa4cb8b45c9e7ee"