UNPKG

@types/capitalize

Version:
16 lines (15 loc) 530 B
/** * Capitalize the first letter of a string * @param input the string to capitalize * @param [preserve] preserve casing of the rest of the strings content */ declare function capitalize(input: string, preserve?: boolean): string; declare namespace capitalize { /** * Capitalize each word in a string * @param input the string to capitalize * @param [preserve] preserve casing of the rest of the strings content */ function words(input: string, preserve?: boolean): string; } export = capitalize;