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
Type 'ArraySchema<number[], AnyObject, "", "">' is not assignable to type 'ArraySchema<number[], any, undefined, "">'.
Type '""' is not assignable to type 'undefined'.
Guessing further, after sett the third parameter to any removes error messages:
The last attempt with any works fine, ArraySchema<number[], any, undefined, ""> is probably the most correct. I need to update the generic defaults here tho so that you don't need to provide them like ObjectSchema
I didn't find any documentation on
ArraySchema
usage.Specifically, it's not clear what its type parameters mean.
With just a single array-type parameter it doesn't work for obvious reason: the second parameter is required:
triggering an error:
However, passing
any
as the second parameter doesn't make it work either:and fails with this error:
Guessing further, after sett the third parameter to
any
removes error messages:I wonder, what is the correct way to use this and what is the meaning of the parameters?
Version: 1.0.0-beta.8
The text was updated successfully, but these errors were encountered: