1.2.0 • Published 2 years ago
1k-types v1.2.0
1k-types
TypeScript's largest type utility library
Prerequisites
npm install typescript@^5.1.3 --save-devInstallation
npm install 1k-typesUse
import { ArrayValues, At, PickByType } from '1k-types'
type valuesType = At<ArrayValues<[{ a: string; b: number; c: { a: string } }]>, 'c'> // { a: string }
type test = PickByType<{ a: string; b: number; c: { a: string } }, string> // { a: string }