@pagopa/ts-commons
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Option
Validation
constructor
_A
_L
_URI
value
fold
map
URI
URI
option
Validation
get
Applicative
Type parameters
L
A
Hierarchy
OptionValidation
Index
Constructors
constructor
Properties
_A
_L
_URI
value
Methods
fold
map
Constructors
constructor
new
Option
Validation<L, A>
(
value
:
Option
<
Validation
<
L
,
A
>
>
)
:
OptionValidation
<
L
,
A
>
Type parameters
L
A
Parameters
value:
Option
<
Validation
<
L
,
A
>
>
Returns
OptionValidation
<
L
,
A
>
Properties
Readonly
_A
_A
:
A
Readonly
_L
_L
:
L
Readonly
_URI
_URI
:
"OptionValidation"
Readonly
value
value
:
Option
<
Validation
<
L
,
A
>
>
Methods
fold
fold<R>
(
failure
:
(
l
:
L
)
=>
R
, success
:
(
a
:
A
)
=>
R
)
:
Option
<
R
>
Type parameters
R
Parameters
failure:
(
l
:
L
)
=>
R
(
l
:
L
)
:
R
Parameters
l:
L
Returns
R
success:
(
a
:
A
)
=>
R
(
a
:
A
)
:
R
Parameters
a:
A
Returns
R
Returns
Option
<
R
>
map
map<B>
(
f
:
(
a
:
A
)
=>
B
)
:
OptionValidation
<
L
,
B
>
Type parameters
B
Parameters
f:
(
a
:
A
)
=>
B
(
a
:
A
)
:
B
Parameters
a:
A
Returns
B
Returns
OptionValidation
<
L
,
B
>
Generated using
TypeDoc