Created
August 17, 2022 14:47
-
-
Save jmaicaaan/f2f1b275f52baf2ed2512896a2ec20a8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export type CamelizeString<ObjectProperty extends string> = | |
ObjectProperty extends `${infer F}_${infer R}` | |
? `${F}${Capitalize<CamelizeString<R>>}` | |
: ObjectProperty; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment