Evercatch - v0.10.0
    Preparing search index...

    Namespace ResultAsync

    The functions that create and unwrap a ResultAsync, grouped under the type they work with.

    Every member is also exported on its own, so this is only a matter of preference. The grouped names are shorter, since the type they belong to says what they operate on.

    import { ResultAsync } from "evercatch";

    const [error, data] = await ResultAsync.from(
    fetch("https://api.example.com/data").then((res) => res.json()),
    );
    if (error) {
    console.error(error.message);
    } else {
    console.log(data);
    }

    Async

    from
    unwrapOr
    unwrapOrElse
    unwrapOrThrow