Zod Utils by Ian Macalinao
Preparing search index...
zod-extra
zNullishString
Function zNullishString
zNullishString
<
T
extends
ZodType
<
string
,
ZodTypeDef
,
string
>
>
(
inner
:
T
,
)
:
ZodType
<
null
|
output
<
T
>
,
ZodTypeDef
,
undefined
|
null
|
input
<
T
>
>
A Zod schema that converts empty or undefined strings to null.
Type Parameters
T
extends
ZodType
<
string
,
ZodTypeDef
,
string
>
Parameters
inner
:
T
Returns
ZodType
<
null
|
output
<
T
>
,
ZodTypeDef
,
undefined
|
null
|
input
<
T
>
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Zod Utils by Ian Macalinao
Loading...
A Zod schema that converts empty or undefined strings to null.