Function makeNonOptional

  • Take a function that requires a value of Optional<T> and return a version that takes T

    Type Parameters

    • T

    Parameters

    • f: ((o) => unknown)
        • (o): unknown
        • Parameters

          Returns unknown

    Returns ((v) => unknown)

      • (v): unknown
      • Parameters

        Returns unknown