Skip to main content
Module

x/rimbu/typical/mod.ts>StrNum.TupleLength

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
type alias StrNum.TupleLength
import { type StrNum } from "https://deno.land/x/rimbu@0.12.3/typical/mod.ts";
const { TupleLength } = StrNum;

Infers and returns the length of given Tuple T.

Type Parameters

T extends unknown[]
definition: T extends { length: infer L; } ? L : never