1.2.0 • Published 2 months ago

1k-types v1.2.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 months ago

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 }
1.2.0

2 months ago

1.1.1

4 months ago

1.1.2

4 months ago

1.1.0

6 months ago

1.0.1

6 months ago