Skip to main content
Module

x/domain_functions/src/index.ts>TupleToUnion

Decouple your business logic from your framework. With first-class type inference from end to end.
Go to Latest
type alias TupleToUnion
Re-export
import { type TupleToUnion } from "https://deno.land/x/domain_functions@v2.6.0/src/index.ts";

Converts a tuple type to a union type.

Examples

type MyTuple = [string, number] type MyUnion = TupleToUnion // ^? string | number

Type Parameters

T extends unknown[]
definition: T[number]