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
Maybe
Class Maybe<A>
Type parameters
A
Hierarchy
Effect
<
A
>
Maybe
Index
Properties
nothing
Methods
_open
bind
case
fmap
from
Just
from
Maybe
identity
is
Just
is
Nothing
is
Valide
maybe
To
List
bind
case
cat
Maybes
fmap
from
from
Just
from
Maybe
is
Just
is
Nothing
just
lift
lift
From
Throwable
lift
From
Throwable
Async
list
To
Maybe
map
Maybe
maybe
To
List
Properties
Static
nothing
nothing
:
Maybe
<
never
>
= ...
Methods
_open
_open
(
)
:
unknown
Returns
unknown
bind
bind
<
B
>
(
f
:
(
a
:
A
)
=>
Maybe
<
B
>
)
:
Maybe
<
B
>
Type parameters
B
Parameters
f:
(
a
:
A
)
=>
Maybe
<
B
>
(
a
:
A
)
:
Maybe
<
B
>
Parameters
a:
A
Returns
Maybe
<
B
>
Returns
Maybe
<
B
>
case
case
<
B
>
(
f
:
(
a
:
A
)
=>
B
, n
:
(
)
=>
B
)
:
any
Type parameters
B
Parameters
f:
(
a
:
A
)
=>
B
(
a
:
A
)
:
B
Parameters
a:
A
Returns
B
n:
(
)
=>
B
(
)
:
B
Returns
B
Returns
any
fmap
fmap
<
B
>
(
f
:
(
a
:
A
)
=>
B
)
:
Maybe
<
B
>
Type parameters
B
Parameters
f:
(
a
:
A
)
=>
B
(
a
:
A
)
:
B
Parameters
a:
A
Returns
B
Returns
Maybe
<
B
>
from
Just
from
Just
(
)
:
A
Returns
A
from
Maybe
from
Maybe
(
d
:
A
)
:
A
Parameters
d:
A
Returns
A
identity
identity
<
T
>
(
)
:
T
Type parameters
T
:
typeof
Effect
Returns
T
is
Just
is
Just
(
)
:
boolean
Returns
boolean
is
Nothing
is
Nothing
(
)
:
boolean
Returns
boolean
is
Valide
is
Valide
(
)
:
boolean
Returns
boolean
maybe
To
List
maybe
To
List
(
)
:
A
[]
Returns
A
[]
Static
bind
bind
<
A
,
B
>
(
f
:
(
a
:
A
)
=>
Maybe
<
B
>
, a
:
Maybe
<
A
>
)
:
Maybe
<
B
>
Type parameters
A
B
Parameters
f:
(
a
:
A
)
=>
Maybe
<
B
>
(
a
:
A
)
:
Maybe
<
B
>
Parameters
a:
A
Returns
Maybe
<
B
>
a:
Maybe
<
A
>
Returns
Maybe
<
B
>
Static
case
case
<
A
,
B
>
(
a
:
Maybe
<
A
>
, f
:
(
a
:
A
)
=>
B
, n
:
(
)
=>
B
)
:
B
Type parameters
A
B
Parameters
a:
Maybe
<
A
>
f:
(
a
:
A
)
=>
B
(
a
:
A
)
:
B
Parameters
a:
A
Returns
B
n:
(
)
=>
B
(
)
:
B
Returns
B
Returns
B
Static
cat
Maybes
cat
Maybes
<
A
>
(
a
:
Maybe
<
A
>
[]
)
:
A
[]
Type parameters
A
Parameters
a:
Maybe
<
A
>
[]
Returns
A
[]
Static
fmap
fmap
<
A
,
B
>
(
f
:
(
a
:
A
)
=>
B
, a
:
Maybe
<
A
>
)
:
Maybe
<
B
>
Type parameters
A
B
Parameters
f:
(
a
:
A
)
=>
B
(
a
:
A
)
:
B
Parameters
a:
A
Returns
B
a:
Maybe
<
A
>
Returns
Maybe
<
B
>
Static
from
from
<
A
>
(
a
:
A
)
:
Maybe
<
A
>
Type parameters
A
Parameters
a:
A
Returns
Maybe
<
A
>
Static
from
Just
from
Just
<
A
>
(
a
:
Maybe
<
A
>
)
:
A
Type parameters
A
Parameters
a:
Maybe
<
A
>
Returns
A
Static
from
Maybe
from
Maybe
<
A
>
(
d
:
A
, a
:
Maybe
<
A
>
)
:
A
Type parameters
A
Parameters
d:
A
a:
Maybe
<
A
>
Returns
A
Static
is
Just
is
Just
<
A
>
(
a
:
Maybe
<
A
>
)
:
boolean
Type parameters
A
Parameters
a:
Maybe
<
A
>
Returns
boolean
Static
is
Nothing
is
Nothing
<
A
>
(
a
:
Maybe
<
A
>
)
:
boolean
Type parameters
A
Parameters
a:
Maybe
<
A
>
Returns
boolean
Static
just
just
<
A
>
(
a
:
A
)
:
Maybe
<
A
>
Type parameters
A
Parameters
a:
A
Returns
Maybe
<
A
>
Static
lift
lift
<
A
,
B
>
(
f
:
(
a
:
A
)
=>
B
)
:
(
a
:
Maybe
<
A
>
)
=>
Maybe
<
B
>
Type parameters
A
B
Parameters
f:
(
a
:
A
)
=>
B
(
a
:
A
)
:
B
Parameters
a:
A
Returns
B
Returns
(
a
:
Maybe
<
A
>
)
=>
Maybe
<
B
>
(
a
:
Maybe
<
A
>
)
:
Maybe
<
B
>
Parameters
a:
Maybe
<
A
>
Returns
Maybe
<
B
>
Static
lift
From
Throwable
lift
From
Throwable
<
A
,
Args
>
(
f
:
(
...
a
:
Args
)
=>
A
)
:
(
...
a
:
Args
)
=>
Maybe
<
A
>
Type parameters
A
Args
:
unknown
[]
Parameters
f:
(
...
a
:
Args
)
=>
A
(
...
a
:
Args
)
:
A
Parameters
Rest
...
a:
Args
Returns
A
Returns
(
...
a
:
Args
)
=>
Maybe
<
A
>
(
...
a
:
Args
)
:
Maybe
<
A
>
Parameters
Rest
...
a:
Args
Returns
Maybe
<
A
>
Static
lift
From
Throwable
Async
lift
From
Throwable
Async
<
A
,
Args
>
(
f
:
(
...
a
:
Args
)
=>
Promise
<
A
>
)
:
(
...
a
:
Args
)
=>
Promise
<
Maybe
<
A
>
>
Type parameters
A
Args
:
unknown
[]
Parameters
f:
(
...
a
:
Args
)
=>
Promise
<
A
>
(
...
a
:
Args
)
:
Promise
<
A
>
Parameters
Rest
...
a:
Args
Returns
Promise
<
A
>
Returns
(
...
a
:
Args
)
=>
Promise
<
Maybe
<
A
>
>
(
...
a
:
Args
)
:
Promise
<
Maybe
<
A
>
>
Parameters
Rest
...
a:
Args
Returns
Promise
<
Maybe
<
A
>
>
Static
list
To
Maybe
list
To
Maybe
<
A
>
(
a
:
A
[]
)
:
Maybe
<
A
>
Type parameters
A
Parameters
a:
A
[]
Returns
Maybe
<
A
>
Static
map
Maybe
map
Maybe
<
A
,
B
>
(
f
:
(
a
:
A
)
=>
Maybe
<
B
>
, a
:
A
[]
)
:
B
[]
Type parameters
A
B
Parameters
f:
(
a
:
A
)
=>
Maybe
<
B
>
(
a
:
A
)
:
Maybe
<
B
>
Parameters
a:
A
Returns
Maybe
<
B
>
a:
A
[]
Returns
B
[]
Static
maybe
To
List
maybe
To
List
<
A
>
(
a
:
Maybe
<
A
>
)
:
A
[]
Type parameters
A
Parameters
a:
Maybe
<
A
>
Returns
A
[]
Exports
Array
Combinators
Pipe
String
Maybe
nothing
_open
bind
case
fmap
from
Just
from
Maybe
identity
is
Just
is
Nothing
is
Valide
maybe
To
List
bind
case
cat
Maybes
fmap
from
from
Just
from
Maybe
is
Just
is
Nothing
just
lift
lift
From
Throwable
lift
From
Throwable
Async
list
To
Maybe
map
Maybe
maybe
To
List
Generated using
TypeDoc