@types/capitalize
TypeScript icon, indicating that this package has built-in type declarations

2.0.2 • Public • Published

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

/**
 * 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, and Piotr Błażejewicz.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/capitalize

Weekly Downloads

9,102

Version

2.0.2

License

MIT

Unpacked Size

3.87 kB

Total Files

5

Last publish

Collaborators

  • types