Capitalize the key of the object, and if the value is an array, iterate through the objects in the array.
import type { Equal, Expect } from '@type-challenges/utils'
type foo = {
foo: string
bars: [{ foo: string }]
}
type Foo = {
Foo: string
Bars: [{
Foo: string
}]
}
type cases = [
Expect<Equal<Foo, CapitalizeNestObjectKeys<foo>>>,
]