by Johnson Chu @johnsoncodehk
camelCase
나 PascalCase
를 kebab-case
문자열로 수정하세요.
FooBarBaz
-> foo-bar-baz
예시:
type FooBarBaz = KebabCase<"FooBarBaz">
const foobarbaz: FooBarBaz = "foo-bar-baz"
type DoNothing = KebabCase<"do-nothing">
const doNothing: DoNothing = "do-nothing"