@types/capitalize
Version:
TypeScript definitions for capitalize
35 lines (29 loc) • 1.21 kB
Markdown
# Installation
> `npm install --save @types/capitalize`
# Summary
This package contains type definitions for capitalize (https://github.com/grncdr/js-capitalize).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/capitalize.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/capitalize/index.d.ts)
````ts
/**
* Capitalize the first letter of a string
* @param input the string to capitalize
* @param [preserve] preserve casing of the rest of the strings content
*/
declare function capitalize(input: string, preserve?: boolean): string;
declare namespace capitalize {
/**
* Capitalize each word in a string
* @param input the string to capitalize
* @param [preserve] preserve casing of the rest of the strings content
*/
function words(input: string, preserve?: boolean): string;
}
export = capitalize;
````
### Additional Details
* Last updated: Mon, 06 Nov 2023 22:41:05 GMT
* Dependencies: none
# Credits
These definitions were written by [Frederick Fogerty](https://github.com/frederickfogerty), and [Piotr Błażejewicz](https://github.com/peterblazejewicz).