UNPKG

678 BTypeScriptView Raw
1/**
2 * Returns the plural form of a word.
3 *
4 * @param n The number of things to represent. This dictates whether to return
5 * the singular or plural form of the word.
6 * @param singular The singular form of the word.
7 * @param plural An optional plural form of the word. If non is given, the
8 * plural form is constructed by appending an "s" to the singular form.
9 */
10export declare function pluralize(n: number, singular: string, plural?: string): string;
11/**
12 * Replaces all the instances of [[toReplace]] by [[replacement]] in [[str]].
13 */
14export declare function replaceAll(str: string, toReplace: string, replacement: string): string;
15//# sourceMappingURL=strings.d.ts.map
\No newline at end of file