- liftPar<TArgs, T>(f): ((...elems) => Promise<Maybe<T>>)
-
Type Parameters
-
TArgs extends unknown[]
-
T
Parameters
-
f: ((...args) => T | PromiseLike<T>)
-
- (...args): T | PromiseLike<T>
-
Returns T | PromiseLike<T>
Returns ((...elems) => Promise<Maybe<T>>)
-
- (...elems): Promise<Maybe<T>>
-
Returns Promise<Maybe<T>>
Adapt a synchronous or an asynchronous function to be applied in the context of
Maybe
orAsyncMaybeLike
.