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

orElseAsyncForNullable

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

function orElseAsyncForNullable<T>(input: Nullable<T>, recoverer: NullableAsyncTryRecoveryFn<T>): Promise<Nullable<T>>;
§
orElseAsyncForNullable<T>(input: Nullable<T>, recoverer: NullableAsyncTryRecoveryFn<T>): Promise<Nullable<T>>
[src]

§Type Parameters

§Parameters

§
input: Nullable<T>
[src]
§
recoverer: NullableAsyncTryRecoveryFn<T>
[src]

§Return Type

§
Promise<Nullable<T>>
[src]