reablocks
Version:
Component library for React
24 lines (23 loc) • 517 B
TypeScript
export interface PluralizeInputs {
/**
* Count of items.
*/
count: number;
/**
* Singular form of the word.
*/
singular: string;
/**
* Plural form of the word. Not required.
*/
plural?: string;
/**
* Zero state of the word. Not required.
*/
zero?: string;
/**
* Show count in addition to word.
*/
showCount?: boolean;
}
export declare const pluralize: ({ count, zero, singular, plural, showCount }: PluralizeInputs) => string;