@technobuddha/library
Version:
A large library of useful functions
20 lines (19 loc) • 550 B
TypeScript
/**
* Options for the {@link toCapitalCase} function
*
* @group String
* @category Case Conversion
*/
export type CapitalCaseOptions = {
/** Convert the rest of the string to lower case */
lowerCase?: boolean;
};
/**
* Capitalize the first letter of a string
* @param input - The string to capitalize
* @param options - see {@link CapitalCaseOptions}
* @defaultValue lowerCase default
* @group String
* @category Case Conversion
*/
export declare function toCapitalCase(input: string, { lowerCase }?: CapitalCaseOptions): string;