From 5f57e171b6659667498954d23e77e0149c2d7cfe Mon Sep 17 00:00:00 2001 From: MarvNC Date: Sat, 20 Jan 2024 10:58:06 -0800 Subject: [PATCH] Add new deinflection definition type --- src/types/yomitan/termbank.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/types/yomitan/termbank.ts b/src/types/yomitan/termbank.ts index 5379b33..04c5f04 100644 --- a/src/types/yomitan/termbank.ts +++ b/src/types/yomitan/termbank.ts @@ -22,7 +22,11 @@ type DetailedDefinition = background?: boolean; collapsed?: boolean; collapsible?: boolean; - }; + } + | [ + uninflectedTerm: string, // The uninflected term. + inflectionRules: string[], // A chain of inflection rules that produced the inflected term + ]; type StructuredContentData = { [key: string]: string;