-
Couldn't load subscription status.
- Fork 58
Open
Description
The Zid type of the Zod helpers doesn't seem to implement whatever is necessary to be able to belong to a z.array.
The specific error I'm getting is:
lib/validation/competitions.ts:23:21 - error TS2345: Argument of type 'Zid<"genres">' is not assignable to parameter of type 'SomeType'.
Property '_zod' is missing in type 'Zid<"genres">' but required in type 'SomeType'.
23 genreIds: z.array(zid("genres")),
~~~~~~~~~~~~~
node_modules/zod/v4/core/schemas.d.cts:86:5
86 _zod: _$ZodTypeInternals;
~~~~
'_zod' is declared here.
T3Daniel
Metadata
Metadata
Assignees
Labels
No labels