I have a type with PascalCase and a few uppercase properties, e.g.
Identifiers: {
MarketplaceASIN: {
MarketplaceId: string;
ASIN: string;
},
}
SnakeCasedPropertiesDeep turns this into:
_identifiers: {
_marketplace_a_s_i_n: {
_marketplace_id: string;
_a_s_i_n: string;
};
};
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:
identifiers: {
marketplace_asin: {
marketplace_id: string;
asin: string;
};
};
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?
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too