Function ok

  • This function is suppossed to be used in the constructor of the Result class.

    Type Parameters

    • T

      the type of the positive result

    Parameters

    • val: T

      the (positive) result

    Returns Ok<T>

    a Positive result for the Result class

Generated using TypeDoc