category |
---|
String Operation |
Replace the snake_case or kebab-case string with camelCase.
import type { CamelCase } from '@utype/core'
// Expect: "fooBarBaz"
type FooBarBaz = CamelCase<"foo_bar_baz">
// Expect: "fooBarBaz"
type FooBarBaz2 = CamelCase<"foo-bar-baz">