@allynet/ishod
    Preparing search index...

    Type Alias Result<T, E>

    Result: Ok<T> | Err<E>

    A result is a type that can be either an Ok or an Err.

    It represents the result of an operation.

    The two variants are mutually exclusive.

    Type Parameters

    • T
    • E = unknown
    const result: Result<number, string> = ok(1);
    const error: Result<number, string> = err("error");
    const tryResult: Result<number, unknown> = try$(() => {
    return 1;
    });