1.0.3 • Published 3 years ago

tuple-type v1.0.3

Weekly downloads
71
License
MIT
Repository
github
Last release
3 years ago

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