The string literal used for creating the recordId zod type had return z.custom<RecordId<\`$Table \`>> which was causing all records to expect the table value $Table; this seems to be an issue with Zod's type inference. Changed to <Table> to pass the generic correctly
The string literal used for creating the recordId zod type had
return z.custom<RecordId<\`$Table \`>>
which was causing all records to expect the table value$Table
; this seems to be an issue with Zod's type inference. Changed to<Table>
to pass the generic correctly