Type alias Ok<T>

Ok<T>: {
    status: "ok";
    value: T;
}

This type is suppossed to be used in the constructor of the Result class. It represents a positive value

Type Parameters

  • T

    the type of the value

Type declaration

  • status: "ok"
  • value: T

Generated using TypeDoc