SnakeCaseProperties doesn't handle PascalCase and UPPERCASE #223
Labels
bug
Something isn't working
component:casing
Relates to CamelCase, SnakeCase and similar types
help wanted
Extra attention is needed
I have a type with PascalCase and a few uppercase properties, e.g.
SnakeCasedPropertiesDeep turns this into:
It doesn't handle the cases where the property starts with an uppercase and where the property contains multiple uppercase letters in a row.
I could overcome the first issue by using CamelCasedPropertiesDeep first.
What I would expect is:
During runtime I use lodash's https://lodash.com/docs/4.17.15#snakeCase method. Is there a way to use the same method for the type?
Upvote & Fund
The text was updated successfully, but these errors were encountered: