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