advanced-js-kit
Version:
Modern TypeScript utility library with tree-shaking support - Array, String, Number, Network, Sleep, and JWT utilities for JavaScript and TypeScript projects
16 lines (14 loc) • 546 B
TypeScript
/**
* Capitalizes the first letter of a string
* @param str - The string to capitalize
* @returns The capitalized string
*/
declare function capitalize(str: string): string;
/**
* Capitalizes the first letter of each word in a string
* @param str - The string to capitalize
* @returns The string with each word capitalized
*/
declare function capitalizeWords(str: string): string;
declare function convertCamelToNormalCapitalized(camelCaseString: string): string;
export { capitalize, capitalizeWords, convertCamelToNormalCapitalized };