Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CamelCasedObjectDeep breaks tuple-types into array-types #817

Closed
pmk1c opened this issue Feb 21, 2024 · 0 comments · Fixed by #818
Closed

CamelCasedObjectDeep breaks tuple-types into array-types #817

pmk1c opened this issue Feb 21, 2024 · 0 comments · Fixed by #818

Comments

@pmk1c
Copy link
Contributor

pmk1c commented Feb 21, 2024

Code says more than 1000 words :)

import { CamelCasedPropertiesDeep } from "type-fest";

type Object = {
    tuple_property: [number, number]
}

// type CamelCasedObject = {
//    tupleProperty: [number, number]; // <-- working
// }
type CamelCasedObject = CamelCasedProperties<Object>

// type CamelCasedObjectDeep = {
//    tupleProperty: number[]; // <-- broken
// }
type CamelCasedObjectDeep = CamelCasedPropertiesDeep<Object>

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant