Skip to content

Commit

Permalink
Merge pull request #245 from harshmangalam/harsh/fix-docs
Browse files Browse the repository at this point in the history
fix schema defs for optional()
  • Loading branch information
fabian-hiller authored Aug 27, 2024
2 parents 0c4e772 + fdbedc7 commit d15a366
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,11 @@ const SpecialSchema = v.object({
}),
select: v.object({
array: v.array(v.string()),
string: optional(v.string()),
string: v.optional(v.string()),
}),
file: v.object({
list: v.array(v.custom<NoSerialize<Blob>>(isBlob)),
item: optional(v.custom<NoSerialize<Blob>>(isBlob)),
item: v.optional(v.custom<NoSerialize<Blob>>(isBlob)),
}),
});

Expand Down

0 comments on commit d15a366

Please sign in to comment.