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>TupleToUnion

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