Upgrade Ava to v4
This commit is contained in:
parent
9a40cc5274
commit
ce89f1b611
1153 changed files with 27264 additions and 95308 deletions
19
node_modules/plur/index.d.ts
generated
vendored
19
node_modules/plur/index.d.ts
generated
vendored
|
|
@ -1,23 +1,26 @@
|
|||
/**
|
||||
Pluralize a word.
|
||||
|
||||
@param word - Word to pluralize.
|
||||
@param plural - Pluralized word.
|
||||
@param word - The word to pluralize.
|
||||
@param plural - Explicitly provide the pluralized word.
|
||||
The plural suffix will match the case of the last letter in the word.
|
||||
This option is only for extreme edge-cases. You probably won't need it.
|
||||
|
||||
Default:
|
||||
|
||||
- Irregular nouns will use this [list](https://github.com/sindresorhus/irregular-plurals/blob/master/irregular-plurals.json).
|
||||
- Irregular nouns will use this [list](https://github.com/sindresorhus/irregular-plurals/blob/main/irregular-plurals.json).
|
||||
- Words ending in *s*, *x*, *z*, *ch*, *sh* will be pluralized with *-es* (eg. *foxes*).
|
||||
- Words ending in *y* that are preceded by a consonant will be pluralized by replacing *y* with *-ies* (eg. *puppies*).
|
||||
- All other words will have "s" added to the end (eg. *days*).
|
||||
|
||||
@param count - Count to determine whether to use singular or plural.
|
||||
@param count - The count to determine whether to use singular or plural.
|
||||
|
||||
@example
|
||||
```
|
||||
import plur = require('plur');
|
||||
import plur from 'plur';
|
||||
|
||||
plur('rainbow');
|
||||
//=> 'rainbows'
|
||||
|
||||
plur('unicorn', 4);
|
||||
//=> 'unicorns'
|
||||
|
|
@ -32,7 +35,5 @@ plur('cactus', 2);
|
|||
//=> 'cacti'
|
||||
```
|
||||
*/
|
||||
declare function plur(word: string, count: number): string;
|
||||
declare function plur(word: string, plural: string, count: number): string;
|
||||
|
||||
export = plur;
|
||||
export default function plur(word: string, count?: number): string;
|
||||
export default function plur(word: string, plural: string, count: number): string;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue