@cc-heart/utils
Version:
🔧 javascript common tools collection
15 lines (14 loc) • 483 B
TypeScript
/**
* Capitalizes the first letter of a string.
*
* @param target - The string to be capitalized.
* @return - The capitalized string.
*/
export declare const capitalize: <T extends string>(target: T) => Capitalize<T>;
/**
* Returns a new string with the first character converted to lowercase.
*
* @param target - The string to be unCapitalized.
* @returns - The unCapitalized string.
*/
export declare const unCapitalize: <T extends string>(target: T) => Uncapitalize<T>;