Type alias Result<R, E>

Result<R, E>: Ok<R> | Err<E>

A result that can be either successful or failed. A successful result contains some data, and a failed result contains an array of errors.

Type Parameters

  • R

    The type of the data, if the result is successful.

  • E

    The type of the errors, if the result is failed.