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

toResultErrFromMaybe

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

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

§Type Parameters

§Parameters

§
input: Maybe<E>
[src]

§Return Type

§
Result<void, E>
[src]