svecosystem/formsnap

expose FormFieldProps to simplify custom wrappers

Closed this issue · 1 comments

It would be easier to create a custom component around FormField if the type is exposed. Currently there is a FieldProps type being exported but it has a different type constraint and there is an error if attempted to propogate generic to FormField.

Type 'Form<ZodEffects<ZodObject<{ isRecurring: ZodBoolean; pricing: ZodNumber; serviceUrl: ZodString; }, "strip", ZodTypeAny, { ...; }, { ...; }>, { ...; }, { ...; }>>' is not assignable to type 'Form<AnyZodObject>'.

Closed by #131