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

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 or undefined, throw TypeError.
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]

§Type Parameters

§Parameters

§
input: Maybe<T>
[src]
§
recoverer: AsyncRecoveryFn<NotNullOrUndefined<T>>
[src]

§Return Type