1.2.0 • Published 2 months ago
1k-types v1.2.0
1k-types
TypeScript's largest type utility library
Prerequisites
npm install typescript@^5.1.3 --save-dev
Installation
npm install 1k-types
Use
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 }