Skip to main content
Module

x/froebel/types.ts>Switch

A strictly typed utility library.
Latest
type alias Switch
import { type Switch } from "https://deno.land/x/froebel@v0.23.2/types.ts";

Type Parameters

T extends any[]
definition: T extends [infer A, ...infer B] ? (A extends [boolean, any] ? (A[0] extends true ? A[1] : Switch<B extends any[] ? B : never>) : A) : never