New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@types/pluralize

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/pluralize - npm Package Compare versions

Comparing version

to
0.0.29

127

pluralize/index.d.ts
// Type definitions for pluralize
// Project: https://www.npmjs.com/package/pluralize
// Definitions by: Syu Kato <https://github.com/ukyo>
// Karol Majewski <https://github.com/karol-majewski>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
interface PluralizeStatic {
/**
* Pluralize or singularize a word based on the passed in count.
*
* @param word
* @param count
* @param inclusive
*/
(word: string, count?: number, inclusive?: boolean): string;
/**
* Pluralize or singularize a word based on the passed in count.
*
* @param word
* @param count
* @param inclusive
*/
declare function pluralize(word: string, count?: number, inclusive?: boolean): string;
/**
* Pluralize a word based.
*
* @param word
*/
plural(word: string): string;
declare namespace pluralize {
/**
* Pluralize a word based.
*
* @param word
*/
function plural(word: string): string;
/**
* Singularize a word based.
*
* @param word
*/
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
*/
addPluralRule(rule: string|RegExp, replacemant: string): void;
/**
* Add a pluralization rule to the collection.
*
* @param rule
* @param replacement
*/
function addPluralRule(rule: string | RegExp, replacemant: string): void;
/**
* Add a singularization rule to the collection.
*
* @param rule
* @param replacement
*/
addSingularRule(rule: string|RegExp, replacemant: string): void;
/**
* Add a singularization rule to the collection.
*
* @param rule
* @param replacement
*/
function addSingularRule(rule: string | RegExp, replacemant: string): void;
/**
* Add an irregular word definition.
*
* @param single
* @param plural
*/
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
*/
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
*/
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
*/
isSingular(word: string): boolean;
/**
* Test if provided word is singular.
*
* @param word
*/
function isSingular(word: string): boolean;
}
declare module "pluralize" {
export = pluralize;
}
declare var pluralize: PluralizeStatic;
export = pluralize;
export as namespace pluralize;
{
"name": "@types/pluralize",
"version": "0.0.28",
"version": "0.0.29",
"description": "TypeScript definitions for pluralize",

@@ -11,2 +11,7 @@ "license": "MIT",

"githubUsername": "ukyo"
},
{
"name": "Karol Majewski",
"url": "https://github.com/karol-majewski",
"githubUsername": "karol-majewski"
}

@@ -17,8 +22,8 @@ ],

"type": "git",
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git"
},
"scripts": {},
"dependencies": {},
"typesPublisherContentHash": "53b6cbc40109b0baef199f3edf2665ef85f1d79598f526e5285bd510c6b0032a",
"typesPublisherContentHash": "8c5d391566a6347f8ef62994c9aed43b51edf7e07e578b99b0d4184457e85a46",
"typeScriptVersion": "2.0"
}

@@ -8,6 +8,6 @@ # Installation

# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pluralize
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pluralize
Additional Details
* Last updated: Wed, 18 Oct 2017 20:09:19 GMT
* Last updated: Sat, 14 Jul 2018 01:02:01 GMT
* Dependencies: none

@@ -17,2 +17,2 @@ * Global values: pluralize

# Credits
These definitions were written by Syu Kato <https://github.com/ukyo>.
These definitions were written by Syu Kato <https://github.com/ukyo>, Karol Majewski <https://github.com/karol-majewski>.