Skip to main content
Module

x/domain_functions/src/types.ts>UnpackAll

Decouple your business logic from your framework. With first-class type inference from end to end.
Go to Latest
type alias UnpackAll
import { type UnpackAll } from "https://deno.land/x/domain_functions@v2.6.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