From 9c2a91f4a549a24de2d13a42e1b0036465dbb150 Mon Sep 17 00:00:00 2001 From: Benji Grant Date: Fri, 4 Aug 2023 00:00:36 +1000 Subject: [PATCH] Remove unnecessary NonNullable on field chain --- .changeset/olive-peaches-heal.md | 5 +++++ lib/utils.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/olive-peaches-heal.md 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