Skip to main content
Module

x/curry/curry.ts>UnionFactorial

TypeScript-first curry function without upcast
Go to Latest
type alias UnionFactorial
import { type UnionFactorial } from "https://deno.land/x/curry@v1.0.0/curry.ts";

Examples

Example 1

UnionFactorial<[1, 2, 3]> = [1] | [1, 2] | [1, 2, 3].

Type Parameters

T extends AnyArray
definition: T extends readonly [] ? never : T | UnionFactorial<Pop<T>>