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

x/domain_functions/src/types.ts>UnpackAll

Types and functions to make composition easy and safe
Latest
type alias UnpackAll
import { type UnpackAll } from "https://deno.land/x/domain_functions@v3.0.0/src/types.ts";

Unpacks a list of DomainFunctions into a tuple of their data types.

Examples

type MyDFs = [ DomainFunction<{ a: string }>, DomainFunction<{ b: number }>, ] type MyData = UnpackAll // ^? [{ a: string }, { b: number }]

Type Parameters

List
optional
output extends unknown[] = []
definition: List extends [DomainFunction<infer first>, ...infer rest] ? UnpackAll<rest, [...output, first]> : output