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

toResultErrFromNullable

Return Ok<void> if input is null. Otherwise, return Err<E> directly.

function toResultErrFromNullable<E>(input: Nullable<E>): Result<void, E>;
§
toResultErrFromNullable<E>(input: Nullable<E>): Result<void, E>
[src]

§Type Parameters

§Parameters

§
input: Nullable<E>
[src]

§Return Type

§
Result<void, E>
[src]