Skip to main content
Module

x/ts_toolbelt_unofficial/mod.ts>T.Shortest

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

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