type-fest
type-fest copied to clipboard
Tuple alias for FixedLengthArray
I think the FixedLengthArray
is a great utility type, however to stick to the conventional naming of a fixed array being a "tuple", would you consider an alias of FixedLengthArray
named Tuple
?
Upvote & Fund
- We're using Polar.sh so you can upvote and help fund this issue.
- The funding will be given to active contributors.
- Thank you in advance for helping prioritize & fund our backlog.
Sounds like you want https://github.com/sindresorhus/type-fest/blob/main/source/readonly-tuple.d.ts
Ah nice, just tried comparing them and seems the code for them is a little different. Are there any differences between them?
The ReadonlyTuple
is readonly, hence why I was asking if you'd be willing to create a Tuple
alias for FixedLengthArray
? 🙂 Unless I'm missing something?