UNPKG

@augment-vir/common

Version:

A collection of augments, helpers types, functions, and classes for any JavaScript environment.

21 lines (20 loc) 794 B
/** * Capitalize the first letter of the input _only if_ the given options specifies doing so. * * @deprecated Prefer `setFirstLetterCasing`. * @category String * @category Package : @augment-vir/common * @package [`@augment-vir/common`](https://www.npmjs.com/package/@augment-vir/common) */ export declare function maybeCapitalize(input: string, casingOptions: { capitalizeFirstLetter: boolean; }): string; /** * Capitalize the first letter of the input. * * @deprecated Prefer `setFirstLetterCasing`. * @category String * @category Package : @augment-vir/common * @package [`@augment-vir/common`](https://www.npmjs.com/package/@augment-vir/common) */ export declare function capitalizeFirstLetter<InputGeneric extends string>(input: InputGeneric): Capitalize<InputGeneric>;