deep-case-crafter
Version:
Transforms deeply nested object, array, Map, and Set keys between common case formats while preserving TypeScript type safety
16 lines (15 loc) • 498 B
TypeScript
/**
* Converts a PascalCase string to kebab-case
* Core transformation function without special character handling
*
* @param str - The PascalCase string to convert
* @returns The kebab-case transformed string
*
* @example
* ```typescript
* pascalToKebabCase('HelloWorld') // => 'hello-world'
* pascalToKebabCase('HTTPResponse') // => 'http-response'
* ```
* @internal This function is for internal use by the library
*/
export default function pascalToKebabCase(str: string): string;