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

x/effection/lib/types.ts>Yielded

Structured concurrency and effects for JavaScript
Latest
type alias Yielded
import { type Yielded } from "https://deno.land/x/effection@4.0.0-alpha.1/lib/types.ts";

Unwrap the type of an Operation. Analogous to the built in Awaited type. Yielded<Operation> === T

Type Parameters

T extends Operation<unknown>
definition: T extends Operation<infer TYield> ? TYield : never