You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Filename]: error TS2322: Type '{ _errors: never[]; }' is not assignable to type 'ZodFormattedError<readonly string[], string>'.
Type '{ _errors: never[]; }' is missing the following properties from type 'readonly ({ _errors: string[]; } | undefined)[]': length, concat, join, slice, and 26 more.
85 ids: { _errors: [] },
~~~
[Filename]:
80 ids: ReadonlyArray<string>;
~~~
The expected type comes from property 'ids' which is declared here on type 'ZodFormattedError<Foo>'
The weird thing is if I change my type Foo to use an Array instead of a ReadonlyArray the error goes away. This works:
The following TypeScript code gives a compiler error:
The error:
The weird thing is if I change my type
Foo
to use anArray
instead of aReadonlyArray
the error goes away. This works:The text was updated successfully, but these errors were encountered: