Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/eitherway/lib/async/tasks.ts>InferredSuccessTuple

Yet Another Option and Result Implementation - providing safe abstractions for fallible flows inspired by F# and Rust
Latest
type alias InferredSuccessTuple
import { type InferredSuccessTuple } from "https://deno.land/x/eitherway@0.10.0/lib/async/tasks.ts";

Use this to infer the encapsulated <T> types from a tuple of Task<T,E>

Type Parameters

P extends Readonly<ArrayLike<PromiseLike<Result<unknown, unknown>>>>
definition: [i in keyof P]: P[i] extends PromiseLike<Result<infer T, unknown>> ? T : never