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

toResultOkFromUndefinable

Return Err<void> if input is undefinable. Otherwise, return Ok<T> directly.

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

§Type Parameters

§Parameters

§Return Type

§
Result<T, void>
[src]