@types/pluralize
Advanced tools
Comparing version
@@ -17,60 +17,60 @@ // Type definitions for pluralize | ||
declare namespace pluralize { | ||
/** | ||
* Pluralize a word based. | ||
* | ||
* @param word | ||
*/ | ||
function plural(word: string): string; | ||
/** | ||
* Pluralize a word based. | ||
* | ||
* @param word | ||
*/ | ||
function plural(word: string): string; | ||
/** | ||
* Singularize a word based. | ||
* | ||
* @param word | ||
*/ | ||
function singular(word: string): string; | ||
/** | ||
* Singularize a word based. | ||
* | ||
* @param word | ||
*/ | ||
function singular(word: string): string; | ||
/** | ||
* Add a pluralization rule to the collection. | ||
* | ||
* @param rule | ||
* @param replacement | ||
*/ | ||
function addPluralRule(rule: string | RegExp, replacement: string): void; | ||
/** | ||
* Add a pluralization rule to the collection. | ||
* | ||
* @param rule | ||
* @param replacement | ||
*/ | ||
function addPluralRule(rule: string | RegExp, replacement: string): void; | ||
/** | ||
* Add a singularization rule to the collection. | ||
* | ||
* @param rule | ||
* @param replacement | ||
*/ | ||
function addSingularRule(rule: string | RegExp, replacement: string): void; | ||
/** | ||
* Add a singularization rule to the collection. | ||
* | ||
* @param rule | ||
* @param replacement | ||
*/ | ||
function addSingularRule(rule: string | RegExp, replacement: string): void; | ||
/** | ||
* Add an irregular word definition. | ||
* | ||
* @param single | ||
* @param plural | ||
*/ | ||
function addIrregularRule(single: string, plural: string): void; | ||
/** | ||
* Add an irregular word definition. | ||
* | ||
* @param single | ||
* @param plural | ||
*/ | ||
function addIrregularRule(single: string, plural: string): void; | ||
/** | ||
* Add an uncountable word rule. | ||
* | ||
* @param word | ||
*/ | ||
function addUncountableRule(word: string | RegExp): void; | ||
/** | ||
* Add an uncountable word rule. | ||
* | ||
* @param word | ||
*/ | ||
function addUncountableRule(word: string | RegExp): void; | ||
/** | ||
* Test if provided word is plural. | ||
* | ||
* @param word | ||
*/ | ||
function isPlural(word: string): boolean; | ||
/** | ||
* Test if provided word is plural. | ||
* | ||
* @param word | ||
*/ | ||
function isPlural(word: string): boolean; | ||
/** | ||
* Test if provided word is singular. | ||
* | ||
* @param word | ||
*/ | ||
function isSingular(word: string): boolean; | ||
/** | ||
* Test if provided word is singular. | ||
* | ||
* @param word | ||
*/ | ||
function isSingular(word: string): boolean; | ||
} | ||
@@ -77,0 +77,0 @@ |
{ | ||
"name": "@types/pluralize", | ||
"version": "0.0.30", | ||
"version": "0.0.31", | ||
"description": "TypeScript definitions for pluralize", | ||
@@ -28,4 +28,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pluralize", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "b33d066b4786f6eecc38ab165736ff354dba7ce92a89e1f297f0b0a592f307d4", | ||
"typeScriptVersion": "4.3" | ||
"typesPublisherContentHash": "9240c6951d4420e5926b1be66e908872a8aba599686f78fc2b3858df8c9bc8ae", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -27,60 +27,60 @@ # Installation | ||
declare namespace pluralize { | ||
/** | ||
* Pluralize a word based. | ||
* | ||
* @param word | ||
*/ | ||
function plural(word: string): string; | ||
/** | ||
* Pluralize a word based. | ||
* | ||
* @param word | ||
*/ | ||
function plural(word: string): string; | ||
/** | ||
* Singularize a word based. | ||
* | ||
* @param word | ||
*/ | ||
function singular(word: string): string; | ||
/** | ||
* Singularize a word based. | ||
* | ||
* @param word | ||
*/ | ||
function singular(word: string): string; | ||
/** | ||
* Add a pluralization rule to the collection. | ||
* | ||
* @param rule | ||
* @param replacement | ||
*/ | ||
function addPluralRule(rule: string | RegExp, replacement: string): void; | ||
/** | ||
* Add a pluralization rule to the collection. | ||
* | ||
* @param rule | ||
* @param replacement | ||
*/ | ||
function addPluralRule(rule: string | RegExp, replacement: string): void; | ||
/** | ||
* Add a singularization rule to the collection. | ||
* | ||
* @param rule | ||
* @param replacement | ||
*/ | ||
function addSingularRule(rule: string | RegExp, replacement: string): void; | ||
/** | ||
* Add a singularization rule to the collection. | ||
* | ||
* @param rule | ||
* @param replacement | ||
*/ | ||
function addSingularRule(rule: string | RegExp, replacement: string): void; | ||
/** | ||
* Add an irregular word definition. | ||
* | ||
* @param single | ||
* @param plural | ||
*/ | ||
function addIrregularRule(single: string, plural: string): void; | ||
/** | ||
* Add an irregular word definition. | ||
* | ||
* @param single | ||
* @param plural | ||
*/ | ||
function addIrregularRule(single: string, plural: string): void; | ||
/** | ||
* Add an uncountable word rule. | ||
* | ||
* @param word | ||
*/ | ||
function addUncountableRule(word: string | RegExp): void; | ||
/** | ||
* Add an uncountable word rule. | ||
* | ||
* @param word | ||
*/ | ||
function addUncountableRule(word: string | RegExp): void; | ||
/** | ||
* Test if provided word is plural. | ||
* | ||
* @param word | ||
*/ | ||
function isPlural(word: string): boolean; | ||
/** | ||
* Test if provided word is plural. | ||
* | ||
* @param word | ||
*/ | ||
function isPlural(word: string): boolean; | ||
/** | ||
* Test if provided word is singular. | ||
* | ||
* @param word | ||
*/ | ||
function isSingular(word: string): boolean; | ||
/** | ||
* Test if provided word is singular. | ||
* | ||
* @param word | ||
*/ | ||
function isSingular(word: string): boolean; | ||
} | ||
@@ -94,3 +94,3 @@ | ||
### Additional Details | ||
* Last updated: Thu, 06 Jul 2023 20:32:45 GMT | ||
* Last updated: Sun, 24 Sep 2023 06:37:28 GMT | ||
* Dependencies: none | ||
@@ -97,0 +97,0 @@ * Global values: `pluralize` |
6354
3.32%