@leancodepl/utils
Version:
Common utility functions and React hooks for web applications
25 lines • 755 B
TypeScript
/**
* Converts the first character of a string to lowercase.
*
* @param value - The string to transform
* @returns The string with the first character in lowercase
* @example
* ```typescript
* const result = toLowerFirst('UserName');
* // Result: 'userName'
* ```
*/
export declare function toLowerFirst(value: string): string;
/**
* Converts the first character of a string to uppercase.
*
* @param value - The string to transform
* @returns The string with the first character in uppercase
* @example
* ```typescript
* const result = toUpperFirst('userName');
* // Result: 'UserName'
* ```
*/
export declare function toUpperFirst<TValue extends string>(value: TValue): Capitalize<TValue>;
//# sourceMappingURL=transformFirst.d.ts.map