kbrabrand / camelize-ts

A typescript typed camelCase function that recursively camel cases a snake cased object structure
22 stars 6 forks source link

Fix typing for camelizing arrays #48

Closed kbrabrand closed 1 year ago

kbrabrand commented 1 year ago

Based on the fix proposed in #47 by @LordZardeck. In addition to the array type inference fix a minor change has been done in the walk function to make that when doing a shallow walk of an array we camelize the first level in the array.

Closes #47

kbrabrand commented 1 year ago

How does this look, @LordZardeck & @jonkoops?

LordZardeck commented 1 year ago

@kbrabrand That's awesome! Thanks for resolving this! This will help clean up our codebase significantly!