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

orElseAsyncForMaybe

Return input as T if the passed input is not null and undefined. Otherwise, return the result of recoverer.

function orElseAsyncForMaybe<T>(input: Maybe<T>, recoverer: MaybeAsyncRecoveryFn<T>): Promise<Maybe<T>>;
§
orElseAsyncForMaybe<T>(input: Maybe<T>, recoverer: MaybeAsyncRecoveryFn<T>): Promise<Maybe<T>>
[src]

§Type Parameters

§Parameters

§
input: Maybe<T>
[src]
§
recoverer: MaybeAsyncRecoveryFn<T>
[src]

§Return Type

§
Promise<Maybe<T>>
[src]