Capitalize Nest Object Keys
约 89 字小于 1 分钟
2026-02-11
题目
Capitalize the key of the object, and if the value is an array, iterate through the objects in the array.
解题思路
待补充
答案
type CapitalizeNestObjectKeys<T> = any验证
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>>>,
]参考
无
