basarat / basarat/typescript-book
`as const` assertion for changing array inference to tuple
Open
- 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
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