Result<T, E>: {
    ok: true;
    value: T;
} | {
    error: E | undefined;
    ok: false;
}

Type Parameters

  • T

  • E = undefined

Type declaration

  • ok: true
  • value: T

Type declaration

  • error: E | undefined
  • ok: false

Generated using TypeDoc