Type Alias Result<T, ErrObj>

Result<T, ErrObj>: Ok<T, ErrObj> | Err<T, ErrObj>

Union type representing either a successful result (Ok) or a failed result (Err).

Type Parameters

  • T

    The type of the success value

  • ErrObj

    The type of the error object