Files
DefinitelyTyped/types/capitalize/index.d.ts
Frederick Fogerty 2a78cc163a Add types for capitalize (#16156)
Add an optional extended description…
2017-04-26 14:47:50 -07:00

20 lines
589 B
TypeScript

// Type definitions for capitalize 1.0
// Project: https://github.com/grncdr/js-capitalize
// Definitions by: Frederick Fogerty <https://github.com/frederickfogerty/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
/**
* Capitalize the first letter of a string
* @param input the string to capitalize
*/
declare function capitalize(input: string): string;
declare namespace capitalize {
/**
* Capitalize each word in a string
* @param input the string to capitalize
*/
function words(input: string): string;
}
export = capitalize;