Replace the camelCase or PascalCase string with kebab-case.
camelCase
PascalCase
kebab-case
FooBarBaz -> foo-bar-baz
FooBarBaz
foo-bar-baz
For example
type FooBarBaz = KebabCase<"FooBarBaz"> // expect: "foo-bar-baz" type DoNothing = KebabCase<"do-nothing"> // expect "do-nothing"
Code