fix(sdk): add index signature to UatItem so callers accepting Record<string, unknown>[] compile (#3184)

The 16 TDD cycles passed vitest but tsc --noEmit flagged TS2322:
UatItem lacked a string index signature, so the consumer at
phase-uat-passed.ts:249 (returning Record<string, unknown>[])
failed to typecheck. Index signature added; behaviour unchanged.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Tom Boucher
2026-05-18 23:04:52 -04:00
parent fd74c9d68a
commit fb473f353d

View File

@@ -51,6 +51,7 @@ const UAT_ITEM_PATTERN =
/###\s*(\d+)\.\s*([^\n]+)\n(?:\*\*)?expected:(?:\*\*)?\s*([^\n]+)\n(?:\*\*)?result:(?:\*\*)?\s*(\w+)/g;
interface UatItem {
[key: string]: unknown;
test: number;
name: string;
expected: string;