decline-word
Version:
Declines words in Russian, Ukrainian and English languages.
4 lines (3 loc) • 367 B
TypeScript
export default function declineWord(n: number, mainPart: string, endingForOne?: string, endingForTwo?: string, endingForFive?: string): string;
export declare const wrap: (mainPart: string, ...args: (string | undefined)[]) => (n: number) => string;
export declare const declineWrapper: (mainPart: string, ...args: (string | undefined)[]) => (n: number) => string;