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

toResultOkFromMaybe

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

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

§Type Parameters

§Parameters

§
input: Maybe<T>
[src]

§Return Type

§
Result<T, void>
[src]