• Adapt a synchronous function to be applied in the context of Either.

    Type Parameters

    • TArgs extends unknown[]

    • T

    Parameters

    • f: ((...args) => T)
        • (...args): T
        • Parameters

          • Rest ...args: TArgs

          Returns T

    Returns (<TEithers>(...eithers) => Either<Either.LeftT<TEithers[number]>, T>)

      • <TEithers>(...eithers): Either<Either.LeftT<TEithers[number]>, T>
      • Type Parameters

        • TEithers extends {
              [K in keyof TArgs]: Either<any, TArgs[K]>
          }

        Parameters

        • Rest ...eithers: TEithers

        Returns Either<Either.LeftT<TEithers[number]>, T>

Generated using TypeDoc