Demo
GitHub
Preparing search index...
The search index is not available
averyfy
averyfy
Result
Interface Result<T, E>
interface
Result
<
T
,
E
>
{
bind
:
<
U
>
(
fn
:
(
val
:
T
)
=>
Result
<
U
,
E
>
)
=>
Result
<
U
,
E
>
;
expect
:
(
message
:
string
)
=>
T
;
fmap
:
<
U
>
(
fn
:
(
val
:
T
)
=>
U
)
=>
Result
<
U
,
E
>
;
isErr
:
()
=>
boolean
;
isOk
:
()
=>
boolean
;
unwrap
:
()
=>
T
;
unwrapErr
:
()
=>
E
;
unwrapOr
:
<
D
>
(
defaultValue
:
D
)
=>
T
|
D
;
fmapErr
<
F
>
(
fn
:
(
err
:
E
)
=>
F
)
:
Result
<
T
,
F
>
;
}
Type Parameters
T
E
Index
Properties
bind
expect
fmap
is
Err
is
Ok
unwrap
unwrap
Err
unwrap
Or
Methods
fmap
Err
Properties
bind
bind
:
<
U
>
(
fn
:
(
val
:
T
)
=>
Result
<
U
,
E
>
)
=>
Result
<
U
,
E
>
expect
expect
:
(
message
:
string
)
=>
T
fmap
fmap
:
<
U
>
(
fn
:
(
val
:
T
)
=>
U
)
=>
Result
<
U
,
E
>
is
Err
isErr
:
()
=>
boolean
is
Ok
isOk
:
()
=>
boolean
unwrap
unwrap
:
()
=>
T
unwrap
Err
unwrapErr
:
()
=>
E
unwrap
Or
unwrapOr
:
<
D
>
(
defaultValue
:
D
)
=>
T
|
D
Methods
fmap
Err
fmapErr
<
F
>
(
fn
:
(
err
:
E
)
=>
F
)
:
Result
<
T
,
F
>
Type Parameters
F
Parameters
fn
:
(
err
:
E
)
=>
F
Returns
Result
<
T
,
F
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
bind
expect
fmap
is
Err
is
Ok
unwrap
unwrap
Err
unwrap
Or
Methods
fmap
Err
Demo
GitHub
averyfy
Loading...