Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/rimbu/typical/strnum.ts>TupleLength

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

Infers and returns the length of given Tuple T.

Type Parameters

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