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

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

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

Use this to infer the encapsulated <T> type from a Task<T,E>

definition: P extends PromiseLike<Result<infer T, unknown>> ? T : never