fix: restore master's test casts mangled by a stale-types eslint --fix

The interrupted pre-commit hook ran eslint --fix while client lib/types
were stale, which stripped two deliberate 'as' casts from master's
tests; one fails typecheck under exactOptionalPropertyTypes without it.
Restore both files to master's content.
This commit is contained in:
Tianyi Cui
2026-07-27 09:41:23 +08:00
parent e423bfbee6
commit 686cb30f9d
2 changed files with 2 additions and 2 deletions

View File

@@ -36,7 +36,7 @@ function effectAt<T extends InputEffect['type']>(
): Extract<InputEffect, { type: T }> {
const e = effects[index]
expect(e?.type).toBe(type)
return e
return e as Extract<InputEffect, { type: T }>
}
/** Drive plain → adjudicating and hand back the minted attempt. */

View File

@@ -22,7 +22,7 @@ function summary(partial: Partial<SessionSummary> & { id: SessionId }): SessionS
running: false,
updatedAt: 0,
...partial,
}
} as SessionSummary
}
const sid = (id: string) => id as SessionId