Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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@1.0.2/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