object-shape-tester - v6.9.2
Preparing search index...
operateOnExtraction
Function operateOnExtraction
operateOnExtraction
<
const
Guarded
extends
TSchema
>
(
originalSchema
:
TSchema
,
guard
:
(
schema
:
TSchema
)
=>
schema
is
Guarded
,
transform
:
(
schema
:
Guarded
)
=>
TSchema
,
)
:
TSchema
Runs a
transform
function on a schema or any part of its union that matches
guard
.
Type Parameters
const
Guarded
extends
TSchema
Parameters
originalSchema
:
TSchema
guard
:
(
schema
:
TSchema
)
=>
schema
is
Guarded
transform
:
(
schema
:
Guarded
)
=>
TSchema
Returns
TSchema
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
object-shape-tester - v6.9.2
Loading...
Runs a
transform
function on a schema or any part of its union that matchesguard
.