@pagopa/ts-commons
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Option
Either
constructor
_A
_L
_URI
value
ap
ap_
chain
fold
get
OrElse
get
OrElseL
is
Left
is
None
is
Right
is
Some
map
URI
URI
option
Either
Type parameters
L
A
Hierarchy
OptionEither
Index
Constructors
constructor
Properties
_A
_L
_URI
value
Methods
ap
ap_
chain
fold
get
OrElse
get
OrElseL
is
Left
is
None
is
Right
is
Some
map
Constructors
constructor
new
Option
Either<L, A>
(
value
:
Option
<
Either
<
L
,
A
>
>
)
:
OptionEither
<
L
,
A
>
Type parameters
L
A
Parameters
value:
Option
<
Either
<
L
,
A
>
>
Returns
OptionEither
<
L
,
A
>
Properties
Readonly
_A
_A
:
A
Readonly
_L
_L
:
L
Readonly
_URI
_URI
:
"OptionEither"
Readonly
value
value
:
Option
<
Either
<
L
,
A
>
>
Methods
ap
ap<B>
(
fab
:
OptionEither
<
L
,
(
a
:
A
)
=>
B
>
)
:
OptionEither
<
L
,
B
>
Type parameters
B
Parameters
fab:
OptionEither
<
L
,
(
a
:
A
)
=>
B
>
Returns
OptionEither
<
L
,
B
>
ap_
ap_<B, C>
(
fb
:
OptionEither
<
L
,
B
>
)
:
OptionEither
<
L
,
C
>
Type parameters
B
C
Parameters
fb:
OptionEither
<
L
,
B
>
Returns
OptionEither
<
L
,
C
>
chain
chain<B>
(
f
:
(
a
:
A
)
=>
OptionEither
<
L
,
B
>
)
:
OptionEither
<
L
,
B
>
Type parameters
B
Parameters
f:
(
a
:
A
)
=>
OptionEither
<
L
,
B
>
(
a
:
A
)
:
OptionEither
<
L
,
B
>
Parameters
a:
A
Returns
OptionEither
<
L
,
B
>
Returns
OptionEither
<
L
,
B
>
fold
fold<R>
(
lf
:
(
l
:
L
)
=>
R
, rf
:
(
r
:
A
)
=>
R
)
:
Option
<
R
>
Type parameters
R
Parameters
lf:
(
l
:
L
)
=>
R
(
l
:
L
)
:
R
Parameters
l:
L
Returns
R
rf:
(
r
:
A
)
=>
R
(
r
:
A
)
:
R
Parameters
r:
A
Returns
R
Returns
Option
<
R
>
get
OrElse
get
OrElse
(
a
:
A
)
:
A
Parameters
a:
A
Returns
A
get
OrElseL
get
OrElseL
(
a
:
Lazy
<
A
>
)
:
A
Parameters
a:
Lazy
<
A
>
Returns
A
is
Left
is
Left
(
)
:
boolean
Returns
boolean
is
None
is
None
(
)
:
boolean
Returns
boolean
is
Right
is
Right
(
)
:
boolean
Returns
boolean
is
Some
is
Some
(
)
:
boolean
Returns
boolean
map
map<B>
(
f
:
(
a
:
A
)
=>
B
)
:
OptionEither
<
L
,
B
>
Type parameters
B
Parameters
f:
(
a
:
A
)
=>
B
(
a
:
A
)
:
B
Parameters
a:
A
Returns
B
Returns
OptionEither
<
L
,
B
>
Generated using
TypeDoc