better-returns
    Preparing search index...

    Type Alias Result<T, E>

    Result: Ok<T> | Err<E>

    A Result can be either a success (Ok) or a failure (Err) response. This union type is used for functions that can either return a valid value or an error, promoting explicit error handling.

    Type Parameters

    • T

      The type of the successful value.

    • E

      The type of the error value.