An open API service indexing awesome lists of open source software.

https://github.com/chrismilson/tuple-type

A generic tuple type for typescript
https://github.com/chrismilson/tuple-type

tuple typescript

Last synced: 6 months ago
JSON representation

A generic tuple type for typescript

Awesome Lists containing this project

README

          

[![npm version](https://badge.fury.io/js/tuple-type.svg)](https://badge.fury.io/js/tuple-type)

# Tuple Type

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

```ts
// like
type Foo = Tuple

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

This package provides exactly that. Simple!

## Installation

```bash
yarn add tuple-type
```