You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently upgraded camelcase-keys from version 8.0.2 to 9.1.0 and encountered an issue where nested object keys are not being camelCased recursively when using a union type with null.
Example Code:
Here's a TypeScript example to illustrate the issue:
@yutak23@sindresorhus Thank you for the prompt resolution of the issue! I've updated to version 9.1.2 in my own project and can confirm that the issue has been resolved. I really appreciate the quick turnaround.
Hello,
I recently upgraded
camelcase-keys
from version8.0.2
to9.1.0
and encountered an issue where nested object keys are not being camelCased recursively when using a union type withnull
.Example Code:
Here's a TypeScript example to illustrate the issue:
In version
8.0.2
, theMyTypeCamel
would be:However, in version
9.1.0
, it becomes:It is worth noting that this issue does not occur when the nested object type is not unioned with
null
.Is this a known issue, or is there a new configuration setting that I am not aware of? I would appreciate your assistance on this matter.
Thank you!
The text was updated successfully, but these errors were encountered: