1k-types
v1.2.0
Published
> TypeScript's largest type utility library
Downloads
16
Readme
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 }