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

Fix: CamelCasedPropertiesDeep changing tupleto array

Open pmk1c opened this issue 6 months ago • 3 comments

fix #817

  • Copied the array/tuple-logic from DelimiterCasedPropertiesDeep to fix CamelCasedPropertiesDeep to change tuple to array.

pmk1c avatar Feb 21 '24 08:02 pmk1c

It should be a separate helper type, like in https://github.com/sindresorhus/type-fest/blob/main/source/delimiter-cased-properties-deep.d.ts

It would also be useful with a comment to indicate where it's copied from, to make it easier to keep them in sync.

sindresorhus avatar Feb 21 '24 09:02 sindresorhus

@pmk1c Bump :)

sindresorhus avatar Apr 22 '24 08:04 sindresorhus

Sorry for letting you wait.

I also tried merging CamelCasedPropertiesArrayDeep and DelimiterCasedPropertiesArrayDeep into a higher order helper, but I gave up on that, when my head also started to hurt.

I'd think this is good for now.

pmk1c avatar May 03 '24 11:05 pmk1c