09775-hard-capitalize-nest-object-keys
Hard
object
array

Capitalize the key of the object, and if the value is an array, iterate through the objects in the array.

Loading...
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>>>,
]