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

okOrElseAsyncForNullable

Transforms the Nullable<T> into a Result<T, E> by mapping T to Ok(T). If input is null, then returns Err(E) with the result of recoverer()

function okOrElseAsyncForNullable<T, E>(input: Nullable<T>, recoverer: AsyncRecoveryFn<E>): Promise<Result<T, E>>;
§
okOrElseAsyncForNullable<T, E>(input: Nullable<T>, recoverer: AsyncRecoveryFn<E>): Promise<Result<T, E>>
[src]

§Type Parameters

§Parameters

§
input: Nullable<T>
[src]
§
recoverer: AsyncRecoveryFn<E>
[src]

§Return Type

§
Promise<Result<T, E>>
[src]