ts.data.json - v4.1.0
    Preparing search index...

    Function ok

    • Creates a new Ok instance representing a successful value.

      Type Parameters

      • T

        The type of the value

      Parameters

      • value: T

        The successful value to wrap

      Returns Result<T>

      A Result containing the successful value

      const result = JsonDecoder.ok(42);
      // result = Ok(42)