From c2be5da373cbaddba4938362fef4dcecdc4d9549 Mon Sep 17 00:00:00 2001 From: ITOH <72305210+itohatweb@users.noreply.github.com> Date: Sun, 28 Mar 2021 11:46:06 +0200 Subject: [PATCH] types(util): recursive CamelCaseProps and SnakeCaseProps (#689) * Update util.ts * better names * add the old one back --- src/types/util.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/types/util.ts b/src/types/util.ts index 26afb53d9..8d77427c7 100644 --- a/src/types/util.ts +++ b/src/types/util.ts @@ -109,9 +109,9 @@ export type CamelCase = K extends string : K; export type CamelCaseProps = { - [K in keyof T as CamelCase]: T[K]; + [K in keyof T as CamelCase]: CamelCaseProps; }; export type SnakeCaseProps = { - [K in keyof T as SnakeCase]: T[K]; + [K in keyof T as SnakeCase]: SnakeCaseProps; };