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

orElseAsyncForUndefinable

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

function orElseAsyncForUndefinable<T>(input: Undefinable<T>, recoverer: UndefinableAsyncTryRecoveryFn<T>): Promise<Undefinable<T>>;
§
orElseAsyncForUndefinable<T>(input: Undefinable<T>, recoverer: UndefinableAsyncTryRecoveryFn<T>): Promise<Undefinable<T>>
[src]

§Type Parameters

§Parameters

§
recoverer: UndefinableAsyncTryRecoveryFn<T>
[src]

§Return Type

§
Promise<Undefinable<T>>
[src]