Closed LordZardeck closed 1 year ago
If you try to run Camelize on an array, it returns an incorrect type. We've had to write a helper to get around this issue:
import type { Camelize as CamelizeObject } from ‘camelize-ts’ type Camelize<T> = T extends (infer U)[] ? CamelizeObject<U>[] : CamelizeObject<T>
It would be nice if the library just did this on the Camelize type in the first place
Camelize
Hi @LordZardeck, if you think there is a solid solution feel free to open up a PR!
If you try to run Camelize on an array, it returns an incorrect type. We've had to write a helper to get around this issue:
It would be nice if the library just did this on the
Camelize
type in the first place