Skip to content

Commit aa935bf

Browse files
committed
test(plugin-auth): type the seed-equivalence store's rows as rows
The store double stamps each row with its organization, and the spread narrowed the inferred element type to that one key, so the retired-read oracle's `.body` access failed check:test-typecheck (TS2339). Annotating the array as `Row[]` restores the row type; the double's behaviour is unchanged. Claude-Session: https://claude.ai/code/session_01UmqzD97e14iws6hmVhgZ5y Co-authored-by: Claude <noreply@anthropic.com>
1 parent 076daa7 commit aa935bf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/plugins/plugin-auth/src/phone-sms-seed-retired.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ function matchesWhere(row: Row, where: Record<string, unknown> = {}): boolean {
5959
}
6060

6161
function store(rows: Row[]) {
62-
const all = rows.map((r) => ({ organization_id: ORG, ...r }));
62+
const all: Row[] = rows.map((r) => ({ organization_id: ORG, ...r }));
6363
return {
6464
all,
6565
async find(_object: string, q: any) {

0 commit comments

Comments
 (0)