Files
cannaiq/frontend/node_modules/es-toolkit/dist/string/pascalCase.d.ts
2025-11-28 19:45:44 -07:00

18 lines
707 B
TypeScript

/**
* Converts a string to Pascal case.
*
* Pascal case is the naming convention in which each word is capitalized and concatenated without any separator characters.
*
* @param {string} str - The string that is to be changed to pascal case.
* @returns {string} - The converted string to Pascal case.
*
* @example
* const convertedStr1 = pascalCase('pascalCase') // returns 'PascalCase'
* const convertedStr2 = pascalCase('some whitespace') // returns 'SomeWhitespace'
* const convertedStr3 = pascalCase('hyphen-text') // returns 'HyphenText'
* const convertedStr4 = pascalCase('HTTPRequest') // returns 'HttpRequest'
*/
declare function pascalCase(str: string): string;
export { pascalCase };