Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

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

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

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

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