Function ok

  • Creates an Ok result value.

    Type Parameters

    • T

      The value type of the Ok result.

    Parameters

    • value: T

      The successful value.

    Returns Ok<T>

    An Ok result with the successful value.