mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-05 08:13:06 +08:00
A keyed read of a record whose declared fields have different types, with a key the checker types as keyof the record (row[key] in a loop over Object.keys(patch) as (keyof Row)[]), was refused: the read needed one common field type. The checker already types such a read as the union of the field types; when every declared field surfaces in that union, the existing per-field dispatch wraps each hit into its arm. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>