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

transposeResultToNullable

Transposes a Result of an Nullable<T> into an Nullable<T> of a Result.

  • Ok(T) -> Ok(T)
  • Ok(null) -> null
  • Err(E) -> Err(E)
function transposeResultToNullable<T, E>(input: Result<Nullable<T>, E>): Nullable<Result<T, E>>;
§
transposeResultToNullable<T, E>(input: Result<Nullable<T>, E>): Nullable<Result<T, E>>
[src]

§Type Parameters

§Parameters

§
input: Result<Nullable<T>, E>
[src]

§Return Type

§
Nullable<Result<T, E>>
[src]