1k-types
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

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 }

Readme

Keywords

none

Package Sidebar

Install

npm i 1k-types

Weekly Downloads

2

Version

1.2.0

License

ISC

Unpacked Size

10.3 kB

Total Files

54

Last publish

Collaborators

  • 1k_npm