• Adapt a synchronous or an asynchronous function to be applied in the context of Either or AsyncEitherLike.

    Type Parameters

    • TArgs extends unknown[]

    • T

    Parameters

    • f: ((...args) => T | PromiseLike<T>)
        • (...args): T | PromiseLike<T>
        • Parameters

          • Rest ...args: TArgs

          Returns T | PromiseLike<T>

    Returns (<TElems>(...elems) => AsyncEither<Either.LeftT<{
        [K in keyof TElems]: Awaited<TElems[K]>
    }[number]>, T>)

      • <TElems>(...elems): AsyncEither<Either.LeftT<{
            [K in keyof TElems]: Awaited<TElems[K]>
        }[number]>, T>
      • Type Parameters

        Parameters

        • Rest ...elems: TElems

        Returns AsyncEither<Either.LeftT<{
            [K in keyof TElems]: Awaited<TElems[K]>
        }[number]>, T>

Generated using TypeDoc