• Creates a new Prism optic from the two functions.

    Type Parameters

    • B

    • T

    Parameters

    • upcast: ((b) => T)

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

        • (b): T
        • Parameters

          • b: B

          Returns T

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

    The computation to focus the data.

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

        • S

        • A

        Parameters

        Returns Optic<S, T, A, B>

Generated using TypeDoc