Type alias Result<T, E>

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

A value which may (Ok) or may not (Err) be present.

The behavior of this type is checked by TypeScript at compile time, and bears no runtime overhead other than the very small cost of the container object.

Type Parameters

  • T

  • E

Generated using TypeDoc