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