unwrapOrElseAsyncForUndefinable
Return input as T
if the passed input is not undefined
.
Otherwise, return the result of recoverer.
- The result of recoverer must not be
Undefinable<*>
.- If you try to recover the value, use
orElse()
- If you try to recover the value, use
- If the result of recoverer is
undefined
, throwTypeError
.
function unwrapOrElseAsyncForUndefinable<T>(input: Undefinable<T>, recoverer: AsyncRecoveryFn<NotUndefined<T>>): Promise<NotUndefined<T>>;
§
unwrapOrElseAsyncForUndefinable<T>(input: Undefinable<T>, recoverer: AsyncRecoveryFn<NotUndefined<T>>): Promise<NotUndefined<T>>
[src]§Return Type
§
Promise<NotUndefined<T>>
[src]