tuple-type
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

npm version

Tuple Type

Sometimes it would be nice to specify a length for a tuple in typescript instead of explicitly typing it out. For example:

// like
type Foo = Tuple<number, 5>

// instead of
type Foo = [number, number, number, number, number]

This package provides exactly that. Simple!

Installation

yarn add tuple-type

Package Sidebar

Install

npm i tuple-type

Weekly Downloads

2

Version

1.0.3

License

MIT

Unpacked Size

3.08 kB

Total Files

4

Last publish

Collaborators

  • shlappas