type-fest icon indicating copy to clipboard operation
type-fest copied to clipboard

Tuple alias for FixedLengthArray

Open jackdomleo7 opened this issue 1 year ago • 2 comments

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.
Fund with Polar

jackdomleo7 avatar Feb 23 '23 19:02 jackdomleo7

Sounds like you want https://github.com/sindresorhus/type-fest/blob/main/source/readonly-tuple.d.ts

sindresorhus avatar Feb 23 '23 20:02 sindresorhus

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?

jackdomleo7 avatar Feb 23 '23 20:02 jackdomleo7