Preparing search index...
The search index is not available
@ryandur/sand
@ryandur/sand
Failure
Interface Failure<ERROR>
interface
Failure
<
ERROR
>
{
either
:
(
<
VALUE
,
NEW_ERROR
>
(
onSuccess
,
onFailure
)
=>
Result
<
VALUE
,
NEW_ERROR
>
)
;
inspect
:
(
(
)
=>
string
)
;
isSuccess
:
false
;
mBind
:
(
(
fn
)
=>
Failure
<
ERROR
>
)
;
map
:
(
(
fn
)
=>
Failure
<
ERROR
>
)
;
onComplete
:
(
(
consumer
)
=>
Failure
<
ERROR
>
)
;
onFailure
:
(
(
consumer
)
=>
Failure
<
ERROR
>
)
;
onSuccess
:
(
(
consumer
)
=>
Failure
<
ERROR
>
)
;
or
:
(
<
NEW_ERROR
>
(
fn
)
=>
Result
<
unknown
,
NEW_ERROR
>
)
;
orElse
:
(
<
VALUE
>
(
fallback
)
=>
VALUE
)
;
orNull
:
(
(
)
=>
null
)
;
reason
:
ERROR
;
toMaybe
:
(
(
)
=>
Nothing
)
;
}
Type Parameters
ERROR
Index
Properties
either
inspect
is
Success
m
Bind
map
on
Complete
on
Failure
on
Success
or
or
Else
or
Null
reason
to
Maybe
Properties
Readonly
either
either
:
(
<
VALUE
,
NEW_ERROR
>
(
onSuccess
,
onFailure
)
=>
Result
<
VALUE
,
NEW_ERROR
>
)
Type declaration
<
VALUE
,
NEW_ERROR
>
(
onSuccess
,
onFailure
)
:
Result
<
VALUE
,
NEW_ERROR
>
Type Parameters
VALUE
NEW_ERROR
Parameters
onSuccess
:
unknown
onFailure
:
(
(
err
)
=>
Result
<
VALUE
,
NEW_ERROR
>
)
(
err
)
:
Result
<
VALUE
,
NEW_ERROR
>
Parameters
err
:
ERROR
Returns
Result
<
VALUE
,
NEW_ERROR
>
Returns
Result
<
VALUE
,
NEW_ERROR
>
Readonly
inspect
inspect
:
(
(
)
=>
string
)
Type declaration
(
)
:
string
Returns
string
Readonly
is
Success
is
Success
:
false
Readonly
m
Bind
m
Bind
:
(
(
fn
)
=>
Failure
<
ERROR
>
)
Type declaration
(
fn
)
:
Failure
<
ERROR
>
Parameters
fn
:
unknown
Returns
Failure
<
ERROR
>
Readonly
map
map
:
(
(
fn
)
=>
Failure
<
ERROR
>
)
Type declaration
(
fn
)
:
Failure
<
ERROR
>
Parameters
fn
:
unknown
Returns
Failure
<
ERROR
>
Readonly
on
Complete
on
Complete
:
(
(
consumer
)
=>
Failure
<
ERROR
>
)
Type declaration
(
consumer
)
:
Failure
<
ERROR
>
Parameters
consumer
:
Consumer
<
Failure
<
ERROR
>
>
Returns
Failure
<
ERROR
>
Readonly
on
Failure
on
Failure
:
(
(
consumer
)
=>
Failure
<
ERROR
>
)
Type declaration
(
consumer
)
:
Failure
<
ERROR
>
Parameters
consumer
:
Consumer
<
ERROR
>
Returns
Failure
<
ERROR
>
Readonly
on
Success
on
Success
:
(
(
consumer
)
=>
Failure
<
ERROR
>
)
Type declaration
(
consumer
)
:
Failure
<
ERROR
>
Parameters
consumer
:
unknown
Returns
Failure
<
ERROR
>
Readonly
or
or
:
(
<
NEW_ERROR
>
(
fn
)
=>
Result
<
unknown
,
NEW_ERROR
>
)
Type declaration
<
NEW_ERROR
>
(
fn
)
:
Result
<
unknown
,
NEW_ERROR
>
Type Parameters
NEW_ERROR
Parameters
fn
:
(
(
reason
)
=>
Result
<
unknown
,
NEW_ERROR
>
)
(
reason
)
:
Result
<
unknown
,
NEW_ERROR
>
Parameters
reason
:
ERROR
Returns
Result
<
unknown
,
NEW_ERROR
>
Returns
Result
<
unknown
,
NEW_ERROR
>
Readonly
or
Else
or
Else
:
(
<
VALUE
>
(
fallback
)
=>
VALUE
)
Type declaration
<
VALUE
>
(
fallback
)
:
VALUE
Type Parameters
VALUE
Parameters
fallback
:
VALUE
Returns
VALUE
Readonly
or
Null
or
Null
:
(
(
)
=>
null
)
Type declaration
(
)
:
null
Returns
null
Readonly
reason
reason
:
ERROR
Readonly
to
Maybe
to
Maybe
:
(
(
)
=>
Nothing
)
Type declaration
(
)
:
Nothing
Returns
Nothing
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
either
inspect
is
Success
m
Bind
map
on
Complete
on
Failure
on
Success
or
or
Else
or
Null
reason
to
Maybe
@ryandur/sand
Loading...