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
- Host: GitHub
- URL: https://github.com/chrismilson/tuple-type
- Owner: chrismilson
- Created: 2021-02-01T04:27:24.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-01T04:33:49.000Z (about 5 years ago)
- Last Synced: 2025-08-23T18:09:53.778Z (8 months ago)
- Topics: tuple, typescript
- Homepage: https://www.npmjs.com/package/tuple-type
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](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
```