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", "name": "@lingdocs/pashto-inflector",
"version": "0.9.2", "version": "0.9.3",
"author": "lingdocs.com", "author": "lingdocs.com",
"description": "A Pashto inflection and verb conjugation engine, inculding React components for displaying Pashto text, inflections, and conjugations", "description": "A Pashto inflection and verb conjugation engine, inculding React components for displaying Pashto text, inflections, and conjugations",
"homepage": "https://verbs.lingdocs.com", "homepage": "https://verbs.lingdocs.com",

View File

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