Prelude API
Guides
Skill
GitHub
Preparing search index...
@prelude/validation
nullOr
Variable nullOr
Const
nullOr
:
<
T
>
(
a
:
Validator
<
T
>
)
=>
Validator
<
T
|
null
>
= ...
Accepts
null
or whatever
a
accepts; a failure of
a
is marked with the
or
segment.
Type Declaration
<
T
>
(
a
:
Validator
<
T
>
)
:
Validator
<
T
|
null
>
Type Parameters
T
Parameters
a
:
Validator
<
T
>
Returns
Validator
<
T
|
null
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Guides
Skill
GitHub
Prelude API
Loading...
Accepts
nullor whateveraaccepts; a failure ofais marked with theorsegment.