@yar.ua/numerals
Version:
Number to text - Inflector for Ukrainian numerals
31 lines (30 loc) • 799 B
TypeScript
export declare enum Case {
nominative = "nominative",
genitive = "genitive",
dative = "dative",
accusative = "accusative",
instrumental = "instrumental",
locative = "locative",
vocative = "vocative"
}
export declare enum Gender {
masculine = "masculine",
feminine = "feminine",
neuter = "neuter",
common = "common"
}
export declare enum GrammaticalNumber {
singular = "singular",
plural = "plural"
}
export declare enum Animacy {
inanimate = "inanimate",
animate = "animate"
}
export declare class InflectionForm {
["case"]: keyof typeof Case;
gender: keyof typeof Gender;
["number"]: keyof typeof GrammaticalNumber;
animacy: keyof typeof Animacy;
}
export declare function toString(form: Partial<InflectionForm>): string;