From d46bf8900b8741d2d42d67634b99329cb871be00 Mon Sep 17 00:00:00 2001 From: lingdocs <71590811+lingdocs@users.noreply.github.com> Date: Thu, 2 Sep 2021 15:44:07 +0400 Subject: [PATCH] more type --- package.json | 2 +- src/types.ts | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 85ac211..e08b93d 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/types.ts b/src/types.ts index 5ce8075..a38d26f 100644 --- a/src/types.ts +++ b/src/types.ts @@ -334,10 +334,9 @@ export type PerfectContent = { // Plain, 1st, and 2nd Inflection export type InflectionSet = ArrayFixed, 3>; -export type UnisexInflections = { - masc: InflectionSet, - fem: InflectionSet, -} +export type Gender = "masc" | "fem"; + +export type UnisexInflections = Record; export type Inflections = UnisexInflections | Omit | Omit;