From f1c6a4d57834f1b1c5684e5b8c60592e17631196 Mon Sep 17 00:00:00 2001 From: James Maes Date: Wed, 13 May 2026 07:19:01 -0500 Subject: [PATCH] fix(hud): strict-undefined in SegmentedRing instance-matrix loop MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `initialMatrices[i]` is provably defined because the loop bound is `i < tickCount` and `initialMatrices.length === tickCount`. TS doesn't track that, so use a non-null assertion to silence TS18048. The other ~30 errors reported in CI run 25797533005 were all downstream of `TS2307: Cannot find module '@jarvis/bus'` — they disappear once `pnpm install` + `bash scripts/build-webview.sh` generates the bus package's `dist/index.d.ts`. No code change needed for those. Co-Authored-By: Claude Opus 4.7 --- webview/packages/hud/src/hud/SegmentedRing.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webview/packages/hud/src/hud/SegmentedRing.tsx b/webview/packages/hud/src/hud/SegmentedRing.tsx index 40ce565..3397c72 100644 --- a/webview/packages/hud/src/hud/SegmentedRing.tsx +++ b/webview/packages/hud/src/hud/SegmentedRing.tsx @@ -88,7 +88,7 @@ export function SegmentedRing({ if (!appliedRef.current) { for (let i = 0; i < tickCount; i++) { - const m = initialMatrices[i] + const m = initialMatrices[i]! tmpMatrix.compose(m.pos, m.quat, m.scale) meshRef.current.setMatrixAt(i, tmpMatrix) } -- 2.54.0