diff --git a/src/renderer/src/components/sidebar/workspace-card/review/workspace-reference-detail-read.ts b/src/renderer/src/components/sidebar/workspace-card/review/workspace-reference-detail-read.ts index 4ad777343b9..2452ec7ca00 100644 --- a/src/renderer/src/components/sidebar/workspace-card/review/workspace-reference-detail-read.ts +++ b/src/renderer/src/components/sidebar/workspace-card/review/workspace-reference-detail-read.ts @@ -26,7 +26,8 @@ type ReferenceCache = // Keep long-lived readers out of the read closures' store-snapshot scope. function cacheEntryReader(cache: K, key: string) { - return >(state: S): S[K][string] | undefined => state[cache]?.[key] + // oxlint-disable-next-line typescript/consistent-type-assertions -- SAFETY: both sides index the same cache K; TypeScript loses that correlation at the second index. + return (state: AppState) => state[cache]?.[key] as AppState[K][string] | undefined } function lookup(