Zod Utils by Ian Macalinao
Preparing search index...
zod-extra
zRequiredNullishNonEmptyArray
Function zRequiredNullishNonEmptyArray
zRequiredNullishNonEmptyArray
<
TValueSchema
extends
ZodTypeAny
>
(
inner
:
TValueSchema
,
)
:
ZodType
<
null
|
[
TValueSchema
[
"_output"
]
,
...
TValueSchema
[
"_output"
]
[]
]
,
ZodTypeDef
,
input
<
TValueSchema
>
[]
,
>
Transforms zero length arrays to null.
Type Parameters
TValueSchema
extends
ZodTypeAny
Parameters
inner
:
TValueSchema
Returns
ZodType
<
null
|
[
TValueSchema
[
"_output"
]
,
...
TValueSchema
[
"_output"
]
[]
]
,
ZodTypeDef
,
input
<
TValueSchema
>
[]
,
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Zod Utils by Ian Macalinao
Loading...
Transforms zero length arrays to null.