unwrapOrElseAsyncForMaybe
Return input as T
if the passed input is not null
and undefined
.
Otherwise, return the result of recoverer.
- The result of recoverer must not be
Maybe<*>
. - If the result of recoverer is
null
orundefined
, throwTypeError
.
function unwrapOrElseAsyncForMaybe<T>(input: Maybe<T>, recoverer: AsyncRecoveryFn<NotNullOrUndefined<T>>): Promise<NotNullOrUndefined<T>>;
§
unwrapOrElseAsyncForMaybe<T>(input: Maybe<T>, recoverer: AsyncRecoveryFn<NotNullOrUndefined<T>>): Promise<NotNullOrUndefined<T>>
[src]§Return Type
§
Promise<NotNullOrUndefined<T>>
[src]