UNPKG

typedash

Version:

modern, type-safe collection of utility functions

15 lines 480 B
//#region src/functions/capitalize/capitalize.d.ts /** * Returns a new string with the first character capitalized. * @param string The input string to capitalize. * @returns A new string with the first character capitalized. * @example * ```ts * capitalize('foo'); // 'Foo' * capitalize(''); // '' * ``` */ declare function capitalize<S extends string>(string: S): Capitalize<S>; //#endregion export { capitalize as t }; //# sourceMappingURL=capitalize-DFj7F6HO.d.ts.map