import * as eitherway from "https://deno.land/x/eitherway@0.10.0/lib/core/mod.ts";
Namespaces
Utility functions to work with | |
Utilities to work with collections of Result<T, E> | |
N Some |
Functions
Use this as | |
f Err | |
Use this to narrow an | |
f Ok | |
Use this to apply an | |
Alias for Option() | |
Use this if all falsy values should be evaluated to | |
Use this if instances of | |
Use this to return the provided instance of | |
Use this to compose functions and | |
Same as | |
Type predicate - use this to check if all values in an array are | |
Type predicate - use this to check if all values in an array are | |
Use this to either throw | |
Use this to lift the result of an infallible function into a | |
Use this to lift the result of a fallible function into a | |
Use this to lift a function into a | |
Use this to lift a fallible function into a | |
f Some | |
Use this to signal some kind of success irrespective of
the wrapped type as alternative to | |
Use this to cast a |
Interfaces
Base interface implemented by |
Type Aliases
An artificial bottom type en lieu of unknown and nullish types | |
T Err | Err |
Representation of how type T will be passed on to searialization to
| |
T None | None
|
T Ok | Ok |
Option
| |
Result<T, E> | |
T Some | Some |
String representation of type T, i.e. the return type of .toString() | |
Value representation of type T, i.e. the return type of .valueOf() |