Skip to content

Commit 7ec9cbe

Browse files
grypezclaude
andcommitted
fix(kernel-utils): suppress noUncheckedIndexedAccess false positive in makeRemoteSection
The E() proxy index lookup returns T|undefined under noUncheckedIndexedAccess, but method is always present — it comes from Object.keys(methodGuards). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent da28d7d commit 7ec9cbe

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/kernel-utils/src/sheaf/remote.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,11 @@ export const makeRemoteSection = async <M extends Record<string, unknown>>(
4444
const handlers: Record<string, (...args: unknown[]) => Promise<unknown>> = {};
4545
for (const method of Object.keys(methodGuards)) {
4646
handlers[method] = async (...args: unknown[]) =>
47+
// method is always present: it comes from Object.keys(methodGuards)
48+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4749
(E(remote) as Record<string, (...a: unknown[]) => Promise<unknown>>)[
4850
method
49-
](...args);
51+
]!(...args);
5052
}
5153

5254
const exo = makeExo(name, interfaceGuard, handlers) as unknown as Section;

0 commit comments

Comments
 (0)