basarat / basarat/typescript-book

Tuple types with spreads

Open
#353 2 comments 3 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
21.6k
Forks
2.6k
PR merge metrics
No merged PRs in 30d

Description

Reader comment https://www.gitbook.com/book/basarat/typescript/discussions/72 :rose: Quote:

> If you want a tuple type like `[string, boolean, ...number]`, you can use `interface YourName extends Array { 0: string, 1: number }`

Contributor guide

Open the contributing guide

Research direction

Start with the quoted reader discussion and locate the book's existing coverage of tuple types. Clarify whether the requested work is to document tuple types with spreads, then update the relevant section so the syntax and example are accurate.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.