mini-effect
Preparing search index...
schema
custom
Function custom
custom
<
TInput$1
>
(
check
:
Check
)
:
CustomSchema
<
TInput$1
,
undefined
>
Creates a custom schema.
Type Parameters
TInput$1
Parameters
check
:
Check
The type check function.
Returns
CustomSchema
<
TInput$1
,
undefined
>
A custom schema.
custom
<
TInput$1
,
const
TMessage
extends
ErrorMessage
<
CustomIssue
>
|
undefined
=
|
ErrorMessage
<
CustomIssue
>
|
undefined
,
>
(
check
:
Check
,
message
:
TMessage
,
)
:
CustomSchema
<
TInput$1
,
TMessage
>
Creates a custom schema.
Type Parameters
TInput$1
const
TMessage
extends
ErrorMessage
<
CustomIssue
>
|
undefined
=
ErrorMessage
<
CustomIssue
>
|
undefined
Parameters
check
:
Check
The type check function.
message
:
TMessage
The error message.
Returns
CustomSchema
<
TInput$1
,
TMessage
>
A custom schema.
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
mini-effect
Loading...
Creates a custom schema.