more type

This commit is contained in:
lingdocs 2021-09-02 15:44:07 +04:00
parent 3d6e02f6fa
commit d46bf8900b
2 changed files with 4 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@lingdocs/pashto-inflector",
"version": "0.9.2",
"version": "0.9.3",
"author": "lingdocs.com",
"description": "A Pashto inflection and verb conjugation engine, inculding React components for displaying Pashto text, inflections, and conjugations",
"homepage": "https://verbs.lingdocs.com",

View File

@ -334,10 +334,9 @@ export type PerfectContent = {
// Plain, 1st, and 2nd Inflection
export type InflectionSet = ArrayFixed<ArrayOneOrMore<PsString>, 3>;
export type UnisexInflections = {
masc: InflectionSet,
fem: InflectionSet,
}
export type Gender = "masc" | "fem";
export type UnisexInflections = Record<Gender, InflectionSet>;
export type Inflections = UnisexInflections
| Omit<UnisexInflections, "fem"> | Omit<UnisexInflections, "masc">;