• Creates a new Prism optic from the two functions, but downcast may return a Option.

    Type Parameters

    • B

    • S

    Parameters

    • upcast: ((b) => S)

      The function which coerces the modified value to a partial type.

        • (b): S
        • Parameters

          • b: B

          Returns S

    Returns (<A>(downcast) => Optic<S, S, A, B>)

    The computation to focus the data.

      • <A>(downcast): Optic<S, S, A, B>
      • Type Parameters

        • A

        Parameters

        Returns Optic<S, S, A, B>

Generated using TypeDoc