bupkis
API
Assertions
Preparing search index...
bupkis
z
partialRecord
Function partialRecord
partialRecord
<
Key
extends
$ZodRecordKey
,
Value
extends
SomeType
>
(
keyType
:
Key
,
valueType
:
Value
,
params
?:
|
string
|
{
error
?:
|
string
|
$ZodErrorMap
<
NonNullable
<
|
$ZodIssueInvalidType
<
unknown
>
|
$ZodIssueInvalidKey
<
Record
<
PropertyKey
,
unknown
>
>
,
>
,
>
;
message
?:
string
;
}
,
)
:
z
.
ZodRecord
<
Key
&
$partial
,
Value
>
Type Parameters
Key
extends
$ZodRecordKey
Value
extends
SomeType
Parameters
keyType
:
Key
valueType
:
Value
Optional
params
:
|
string
|
{
error
?:
|
string
|
$ZodErrorMap
<
NonNullable
<
|
$ZodIssueInvalidType
<
unknown
>
|
$ZodIssueInvalidKey
<
Record
<
PropertyKey
,
unknown
>
>
,
>
,
>
;
message
?:
string
;
}
string
{
error
?:
|
string
|
$ZodErrorMap
<
NonNullable
<
|
$ZodIssueInvalidType
<
unknown
>
|
$ZodIssueInvalidKey
<
Record
<
PropertyKey
,
unknown
>
>
,
>
,
>
;
message
?:
string
;
}
Optional
error
?:
|
string
|
$ZodErrorMap
<
NonNullable
<
|
$ZodIssueInvalidType
<
unknown
>
|
$ZodIssueInvalidKey
<
Record
<
PropertyKey
,
unknown
>
>
,
>
,
>
Optional
message
?:
string
Deprecated
This parameter is deprecated. Use
error
instead.
Returns
z
.
ZodRecord
<
Key
&
$partial
,
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.