diff --git a/.changeset/olive-peaches-heal.md b/.changeset/olive-peaches-heal.md new file mode 100644 index 0000000..6ecee2c --- /dev/null +++ b/.changeset/olive-peaches-heal.md @@ -0,0 +1,5 @@ +--- +"@stevent-team/react-zoom-form": patch +--- + +Remove unnecessary NonNullable on field chain diff --git a/lib/utils.ts b/lib/utils.ts index 8af4dfd..d2a3e53 100644 --- a/lib/utils.ts +++ b/lib/utils.ts @@ -10,7 +10,7 @@ type recursiveFieldChain = : Schema extends (z.ZodDefault | z.ZodOptional | z.ZodNullable) ? FieldChain : LeafValue -export type FieldChain = Field & Required, { +export type FieldChain = Field & Required