- liftPar<TArgs, T>(f): (<TElems>(...elems) => AsyncEither<Either.LeftT<{
[K in keyof TElems]: Awaited<TElems[K]>
}[number]>, T>)
-
Type Parameters
-
TArgs extends unknown[]
-
T
Parameters
-
f: ((...args) => T | PromiseLike<T>)
-
- (...args): T | PromiseLike<T>
-
Returns T | PromiseLike<T>
Returns (<TElems>(...elems) => AsyncEither<Either.LeftT<{
[K in keyof TElems]: Awaited<TElems[K]>
}[number]>, T>)
Adapt a synchronous or an asynchronous function to be applied in the context of
Either
orAsyncEitherLike
.