Documentation
Preparing search index...
The search index is not available
Mobx Zod Form
Mobx Zod Form
@monoid-dev/mobx-zod-form
mapDecodeResult
Function mapDecodeResult
map
Decode
Result
<
RawInput
,
Decoded
,
O
>
(
result
,
mapper
,
defaultValue
)
:
O
Type Parameters
RawInput
Decoded
O
Parameters
result
:
SafeDecodeResult
<
RawInput
,
Decoded
>
mapper
:
(
(
data
)
=>
O
)
(
data
)
:
O
Parameters
data
:
Decoded
Returns
O
defaultValue
:
O
Returns
O
The return value of mapper applied to data if success, defaultValue if not.
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Mobx Zod Form
Loading...