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

toResultOkFromNullable

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

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

§Type Parameters

§Parameters

§
input: Nullable<T>
[src]

§Return Type

§
Result<T, void>
[src]