MaybePromise: { isThenable: (<T>(value) => value is PromiseLike<T>); map: (<T, R, R2>(value,
mapValue,
mapError?) => MaybePromise<R | R2>); } Type declaration
isThenable: (<T>(value) => value is PromiseLike<T>)
- <T>(value): value is PromiseLike<T>
Returns value is PromiseLike<T>
map: (<T, R, R2>(value, mapValue, mapError?) => MaybePromise<R | R2>)
- <T, R, R2>(value, mapValue, mapError?): MaybePromise<R | R2>
Returns if a value is like a thenable.