UNPKG

ts-essentials

Version:
5 lines (4 loc) 217 B
import { CamelCase } from "../camel-case"; export type DeepCamelCaseProperties<Type> = Type extends Record<string, unknown> ? { [Key in keyof Type as CamelCase<Key>]: DeepCamelCaseProperties<Type[Key]>; } : Type;