UNPKG

@technobuddha/library

Version:
21 lines (20 loc) 553 B
/** * Options for the {@link toSmallCase} function * * @group String * @category Case Conversion */ export type SmallCaseOptions = { /** Convert other characters in the string to upper case */ upperCase?: boolean; }; /** * Convert the first letter of a string to lower case * * @param input - The string to make small case * @defaultValue upperCase false * @returns the string in small case * @group String * @category Case Conversion */ export declare function toSmallCase(input: string, { upperCase }?: SmallCaseOptions): string;