Open shaKY-iota opened 2 years ago
// your answers type KebabCase<S extends string> = S extends `${infer First}${infer Rest}` ? Uncapitalize<`${First}${Rest extends Uncapitalize<Rest> ? "" : "-"}${KebabCase<Rest>}`> : S;