Type alias Callback<T, E>

Callback<T, E>: ((Ok, Err) => Ok<T> | Err<E>)

The Callback for the Result class It is recommended that the callback simply returns function calls of ok/err Those functions are automatically parsed to the callback in the constructor or can be imported manually

Type Parameters

  • T

    The type of a positive result

  • E

    The type of a negative result

Type declaration

Generated using TypeDoc