basarat / basarat/typescript-book

`as const` assertion for changing array inference to tuple

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

Description

Reference : https://stackoverflow.com/a/54797034/390330 :rose:

Contributor guide

Open the contributing guide

Research direction

Read the linked Stack Overflow answer and inspect the TypeScript book's existing array and tuple inference documentation to find the appropriate section. Document the `as const` assertion and its effect on array inference, with an example that matches the referenced behavior.

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
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.