Search
Preparing search index...
The search index is not available
@bhc/ts-tools
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
@bhc/ts-tools
Either
Class Either<A, B>
Type parameters
A
B
Hierarchy
Effect
<
B
>
Either
Index
Properties
from
Methods
_open
bind
case
either
fmap
from
Left
from
Right
identity
is
Left
is
Right
is
Valide
open
bind
case
either
fmap
from
Left
from
Right
is
Left
is
Right
left
lift
lift
From
Throwable
lift
From
Throwable
Async
right
Properties
Static
from
from
:
<
A
>
(
a
:
A
)
=>
Effect
<
A
>
Type declaration
<
A
>
(
a
:
A
)
:
Effect
<
A
>
Type parameters
A
Parameters
a:
A
Returns
Effect
<
A
>
Methods
_open
_open
(
)
:
unknown
Returns
unknown
bind
bind
<
C
>
(
f
:
(
a
:
B
)
=>
Either
<
A
,
C
>
)
:
Either
<
A
,
C
>
Type parameters
C
Parameters
f:
(
a
:
B
)
=>
Either
<
A
,
C
>
(
a
:
B
)
:
Either
<
A
,
C
>
Parameters
a:
B
Returns
Either
<
A
,
C
>
Returns
Either
<
A
,
C
>
case
case
<
C
>
(
f
:
(
a
:
A
)
=>
C
, g
:
(
a
:
B
)
=>
C
)
:
C
Type parameters
C
Parameters
f:
(
a
:
A
)
=>
C
(
a
:
A
)
:
C
Parameters
a:
A
Returns
C
g:
(
a
:
B
)
=>
C
(
a
:
B
)
:
C
Parameters
a:
B
Returns
C
Returns
C
either
either
<
C
>
(
f
:
(
a
:
A
)
=>
C
, g
:
(
a
:
B
)
=>
C
)
:
C
Type parameters
C
Parameters
f:
(
a
:
A
)
=>
C
(
a
:
A
)
:
C
Parameters
a:
A
Returns
C
g:
(
a
:
B
)
=>
C
(
a
:
B
)
:
C
Parameters
a:
B
Returns
C
Returns
C
fmap
fmap
<
C
>
(
f
:
(
a
:
B
)
=>
C
)
:
Either
<
A
,
C
>
Type parameters
C
Parameters
f:
(
a
:
B
)
=>
C
(
a
:
B
)
:
C
Parameters
a:
B
Returns
C
Returns
Either
<
A
,
C
>
from
Left
from
Left
(
d
:
A
)
:
A
Parameters
d:
A
Returns
A
from
Right
from
Right
(
d
:
B
)
:
B
Parameters
d:
B
Returns
B
identity
identity
<
T
>
(
)
:
T
Type parameters
T
:
typeof
Effect
Returns
T
is
Left
is
Left
(
)
:
boolean
Returns
boolean
is
Right
is
Right
(
)
:
boolean
Returns
boolean
is
Valide
is
Valide
(
)
:
boolean
Returns
boolean
open
open
(
)
:
A
|
B
Returns
A
|
B
Static
bind
bind
<
A
,
B
,
C
>
(
f
:
(
a
:
B
)
=>
Either
<
A
,
C
>
, a
:
Either
<
A
,
B
>
)
:
Either
<
A
,
C
>
Type parameters
A
B
C
Parameters
f:
(
a
:
B
)
=>
Either
<
A
,
C
>
(
a
:
B
)
:
Either
<
A
,
C
>
Parameters
a:
B
Returns
Either
<
A
,
C
>
a:
Either
<
A
,
B
>
Returns
Either
<
A
,
C
>
Static
case
case
<
A
,
B
,
C
>
(
a
:
Either
<
A
,
B
>
, f
:
(
a
:
A
)
=>
C
, g
:
(
a
:
B
)
=>
C
)
:
C
Type parameters
A
B
C
Parameters
a:
Either
<
A
,
B
>
f:
(
a
:
A
)
=>
C
(
a
:
A
)
:
C
Parameters
a:
A
Returns
C
g:
(
a
:
B
)
=>
C
(
a
:
B
)
:
C
Parameters
a:
B
Returns
C
Returns
C
Static
either
either
<
A
,
B
,
C
>
(
f
:
(
a
:
A
)
=>
C
, g
:
(
a
:
B
)
=>
C
, a
:
Either
<
A
,
B
>
)
:
C
Type parameters
A
B
C
Parameters
f:
(
a
:
A
)
=>
C
(
a
:
A
)
:
C
Parameters
a:
A
Returns
C
g:
(
a
:
B
)
=>
C
(
a
:
B
)
:
C
Parameters
a:
B
Returns
C
a:
Either
<
A
,
B
>
Returns
C
Static
fmap
fmap
<
A
,
B
,
C
>
(
f
:
(
a
:
B
)
=>
C
, a
:
Either
<
A
,
B
>
)
:
Either
<
A
,
C
>
Type parameters
A
B
C
Parameters
f:
(
a
:
B
)
=>
C
(
a
:
B
)
:
C
Parameters
a:
B
Returns
C
a:
Either
<
A
,
B
>
Returns
Either
<
A
,
C
>
Static
from
Left
from
Left
<
A
,
B
>
(
d
:
A
, a
:
Either
<
A
,
B
>
)
:
A
Type parameters
A
B
Parameters
d:
A
a:
Either
<
A
,
B
>
Returns
A
Static
from
Right
from
Right
<
A
,
B
>
(
d
:
B
, a
:
Either
<
A
,
B
>
)
:
B
Type parameters
A
B
Parameters
d:
B
a:
Either
<
A
,
B
>
Returns
B
Static
is
Left
is
Left
<
A
,
B
>
(
a
:
Either
<
A
,
B
>
)
:
boolean
Type parameters
A
B
Parameters
a:
Either
<
A
,
B
>
Returns
boolean
Static
is
Right
is
Right
<
A
,
B
>
(
a
:
Either
<
A
,
B
>
)
:
boolean
Type parameters
A
B
Parameters
a:
Either
<
A
,
B
>
Returns
boolean
Static
left
left
<
A
,
B
>
(
a
:
A
)
:
Either
<
A
,
B
>
Type parameters
A
B
Parameters
a:
A
Returns
Either
<
A
,
B
>
Static
lift
lift
<
A
,
B
,
C
>
(
f
:
(
a
:
B
)
=>
C
)
:
(
a
:
Either
<
A
,
B
>
)
=>
Either
<
A
,
C
>
Type parameters
A
B
C
Parameters
f:
(
a
:
B
)
=>
C
(
a
:
B
)
:
C
Parameters
a:
B
Returns
C
Returns
(
a
:
Either
<
A
,
B
>
)
=>
Either
<
A
,
C
>
(
a
:
Either
<
A
,
B
>
)
:
Either
<
A
,
C
>
Parameters
a:
Either
<
A
,
B
>
Returns
Either
<
A
,
C
>
Static
lift
From
Throwable
lift
From
Throwable
<
A
,
B
,
Args
>
(
f
:
(
...
a
:
Args
)
=>
B
)
:
(
...
a
:
Args
)
=>
Either
<
A
,
B
>
Type parameters
A
B
Args
:
unknown
[]
Parameters
f:
(
...
a
:
Args
)
=>
B
(
...
a
:
Args
)
:
B
Parameters
Rest
...
a:
Args
Returns
B
Returns
(
...
a
:
Args
)
=>
Either
<
A
,
B
>
(
...
a
:
Args
)
:
Either
<
A
,
B
>
Parameters
Rest
...
a:
Args
Returns
Either
<
A
,
B
>
Static
lift
From
Throwable
Async
lift
From
Throwable
Async
<
A
,
B
,
Args
>
(
f
:
(
...
a
:
Args
)
=>
Promise
<
B
>
)
:
(
...
a
:
Args
)
=>
Promise
<
Either
<
A
,
B
>
>
Type parameters
A
B
Args
:
unknown
[]
Parameters
f:
(
...
a
:
Args
)
=>
Promise
<
B
>
(
...
a
:
Args
)
:
Promise
<
B
>
Parameters
Rest
...
a:
Args
Returns
Promise
<
B
>
Returns
(
...
a
:
Args
)
=>
Promise
<
Either
<
A
,
B
>
>
(
...
a
:
Args
)
:
Promise
<
Either
<
A
,
B
>
>
Parameters
Rest
...
a:
Args
Returns
Promise
<
Either
<
A
,
B
>
>
Static
right
right
<
A
,
B
>
(
a
:
B
)
:
Either
<
A
,
B
>
Type parameters
A
B
Parameters
a:
B
Returns
Either
<
A
,
B
>
Exports
Array
Combinators
Pipe
String
Either
from
_open
bind
case
either
fmap
from
Left
from
Right
identity
is
Left
is
Right
is
Valide
open
bind
case
either
fmap
from
Left
from
Right
is
Left
is
Right
left
lift
lift
From
Throwable
lift
From
Throwable
Async
right
Generated using
TypeDoc