Skip to main content
Module

x/ts_toolbelt_unofficial/mod.ts>T.CompulsoryKeys

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

Get the keys of L that are [[Compulsory]]

(⚠️ needs --strictNullChecks enabled)

Examples

Example 1

import {L} from 'ts-toolbelt.ts'

type test0 = L.CompulsoryKeys<[1, 2, 3]> // {0: 1, 1: 2, 2: 3}
definition: OCompulsoryKeys<ObjectOf<L>>