Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

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 the result of recoverer is undefined, throw TypeError.
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]

§Type Parameters

§Parameters

§
recoverer: AsyncRecoveryFn<NotUndefined<T>>
[src]

§Return Type