-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
Zod unions can now be rendered as an array of string. The Zod union can contain multiple nested levels of Zod unions. The generated array of string is flattened and sorted. Added string representation for JS Symbol and BigInt in the `stringify` function.
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@jackdbd/zod-to-doc](./zod-to-doc.md) > [arrayFromZodUnion](./zod-to-doc.arrayfromzodunion.md) | ||
|
||
## arrayFromZodUnion variable | ||
|
||
Converts a Zod union into an array of strings. | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
arrayFromZodUnion: <S extends z.ZodUnion<readonly [z.ZodTypeAny, ...z.ZodTypeAny[]]>>(schema: S) => { | ||
error: Error; | ||
value?: undefined; | ||
} | { | ||
value: string[]; | ||
error?: undefined; | ||
} | ||
``` |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@jackdbd/zod-to-doc](./zod-to-doc.md) > [stringsFromZodAnyType](./zod-to-doc.stringsfromzodanytype.md) | ||
|
||
## stringsFromZodAnyType variable | ||
|
||
Converts any Zod type into an array of strings. | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
stringsFromZodAnyType: (x: ZodTypeAny) => string[] | ||
``` |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.