sindresorhus / ts-extras

Essential utilities for TypeScript projects
MIT License
587 stars 15 forks source link

Proposal: add `arrayConcat` #49

Open tychenjiajun opened 2 years ago

tychenjiajun commented 2 years ago

Array concat has wrong types, so maybe we should add an arrayConcat function as a quick fix.

See https://github.com/microsoft/TypeScript/issues/36554#issuecomment-580924501, https://github.com/microsoft/TypeScript/issues/41913, https://github.com/microsoft/TypeScript/pull/33645 for more use cases.

sindresorhus commented 2 years ago

Sounds good 👍

tychenjiajun commented 2 years ago

Should this be implemented in type-fest first?

sindresorhus commented 2 years ago

Nah. It can just be added here.