typedash
Version:
modern, type-safe collection of utility functions
15 lines • 481 B
text/typescript
//#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-BreMWowq.d.cts.map