Type Utils
Preparing search index...
Experimental
validate
Variable validate
validate
:
{
<
T
>
(
arg
:
unknown
,
schema
:
TypeGuard
<
T
>
)
:
T
;
<
T
>
(
arg
:
unknown
,
schema
:
TypeGuard
<
T
>
,
shouldThrow
:
true
)
:
T
;
<
T
>
(
arg
:
unknown
,
schema
:
TypeGuard
<
T
>
,
shouldThrow
:
false
,
)
:
ValidateReturn
<
T
>
;
<
T
>
(
arg
:
unknown
,
schema
:
TypeGuard
<
T
>
,
shouldThrow
:
boolean
,
)
:
ValidateReturn
<
T
>
;
}
Type declaration
<
T
>
(
arg
:
unknown
,
schema
:
TypeGuard
<
T
>
)
:
T
Type Parameters
T
Parameters
arg
:
unknown
schema
:
TypeGuard
<
T
>
Returns
T
<
T
>
(
arg
:
unknown
,
schema
:
TypeGuard
<
T
>
,
shouldThrow
:
true
)
:
T
Type Parameters
T
Parameters
arg
:
unknown
schema
:
TypeGuard
<
T
>
shouldThrow
:
true
Returns
T
<
T
>
(
arg
:
unknown
,
schema
:
TypeGuard
<
T
>
,
shouldThrow
:
false
)
:
ValidateReturn
<
T
>
Type Parameters
T
Parameters
arg
:
unknown
schema
:
TypeGuard
<
T
>
shouldThrow
:
false
Returns
ValidateReturn
<
T
>
<
T
>
(
arg
:
unknown
,
schema
:
TypeGuard
<
T
>
,
shouldThrow
:
boolean
)
:
ValidateReturn
<
T
>
Type Parameters
T
Parameters
arg
:
unknown
schema
:
TypeGuard
<
T
>
shouldThrow
:
boolean
Returns
ValidateReturn
<
T
>
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
Type Utils
Loading...