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
Hi,
Has anyone been able to make the Remix Validated Form package work with the latest Yup package (v1)?
After upgrading, the typescript started yelling at all of my schema declarations, like this:
Argument of type 'ObjectSchema<{ name: string | null | undefined; picture: string | null | undefined; }, AnyObject, { name: undefined; picture: undefined; }, "">' is not assignable to parameter of type 'AnyObjectSchema'.
The types of 'default(...).concat' are incompatible between these types.
Type '{ <IIn extends Maybe<AnyObject>, IC, ID, IF extends Flags>(schema: ObjectSchema<IIn, IC, ID, IF>): ObjectSchema<ConcatObjectTypes<{ name: string | null | undefined; picture: string | null | undefined; }, IIn>, AnyObject & IC, Extract<...> extends never ? ID | (ID extends AnyObject ? _<...> | _<...> : ID) : ID, "d" |...' is not assignable to type '{ <IIn extends Maybe<AnyObject>, IC, ID, IF extends Flags>(schema: ObjectSchema<IIn, IC, ID, IF>): ObjectSchema<ConcatObjectTypes<any, IIn>, any, Extract<...> extends never ? ID | (ID extends AnyObject ? _<...> | _<...> : ID) : ID, any>; (schema: ObjectSchema<...>): ObjectSchema<...>; }'.
Types of parameters 'schema' and 'schema' are incompatible.
Type 'ObjectSchema<any, any, any, any>' is not assignable to type 'ObjectSchema<{ name: string | null | undefined; picture: string | null | undefined; }, AnyObject, any, "d">'.
Types of property 'fields' are incompatible.
Type 'Shape<any, any>' is missing the following properties from type 'Shape<{ name: string | null | undefined; picture: string | null | undefined; }, AnyObject>': name, picture
Is there something I could do to make it work with the new version?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
Has anyone been able to make the Remix Validated Form package work with the latest Yup package (v1)?
After upgrading, the typescript started yelling at all of my schema declarations, like this:
Is there something I could do to make it work with the new version?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions