Skip to main content
Module

x/ts_toolbelt_unofficial/mod.ts>Tuple.Shortest

👷 TypeScript's largest type utility library, now on Deno
Latest
type alias Tuple.Shortest
import { type Tuple } from "https://deno.land/x/ts_toolbelt_unofficial@1.1.0/mod.ts";
const { Shortest } = Tuple;

Get the shortest [[List]] of L & L1 (L has priority if both lengths are equal)

Examples

Example 1

Type Parameters

L extends List
L1 extends List
definition: L extends unknown ? L1 extends unknown ? { 0: L1; 1: L; }[Has<keyof L1, keyof L>] : never : never