bupkis
API
Assertions
Preparing search index...
bupkis
z
set
Function set
set
<
Value
extends
SomeType
>
(
valueType
:
Value
,
params
?:
|
string
|
{
error
?:
string
|
$ZodErrorMap
<
$ZodIssueInvalidType
<
unknown
>
>
;
message
?:
string
;
}
,
)
:
z
.
ZodSet
<
Value
>
Type Parameters
Value
extends
SomeType
Parameters
valueType
:
Value
Optional
params
:
|
string
|
{
error
?:
string
|
$ZodErrorMap
<
$ZodIssueInvalidType
<
unknown
>
>
;
message
?:
string
;
}
string
{
error
?:
string
|
$ZodErrorMap
<
$ZodIssueInvalidType
<
unknown
>
>
;
message
?:
string
;
}
Optional
error
?:
string
|
$ZodErrorMap
<
$ZodIssueInvalidType
<
unknown
>
>
Optional
message
?:
string
Deprecated
This parameter is deprecated. Use
error
instead.
Returns
z
.
ZodSet
<
Value
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
API
Assertions
GitHub
npm
bupkis
Loading...
Deprecated
This parameter is deprecated. Use
error
instead.