- lift<TArgs, T>(f): (<TEithers>(...eithers) => Either<Either.LeftT<TEithers[number]>, T>)
-
Type Parameters
-
TArgs extends unknown[]
-
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
Adapt a synchronous function to be applied in the context of
Either
.