From a51f1ab2dc675a49bfeeb08cc24b97eb8d888e4a Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sun, 28 Jan 2024 07:21:12 -0500 Subject: Deinflection cycle testing (#477) * Add ReasonRaw * Set up cycle checks * Use Deinflector.rulesMatch * Remove checkRules * Use Deinflector.rulesMatch * Convert to test * Rename * Rename --- types/ext/deinflector.d.ts | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'types/ext') diff --git a/types/ext/deinflector.d.ts b/types/ext/deinflector.d.ts index 5defbf79..18d0f04a 100644 --- a/types/ext/deinflector.d.ts +++ b/types/ext/deinflector.d.ts @@ -20,12 +20,14 @@ import type * as TranslationInternal from './translation-internal'; export type ReasonTypeRaw = 'v1' | 'v1d' | 'v1p' | 'v5' | 'vs' | 'vk' | 'vz' | 'adj-i' | 'iru'; export type ReasonsRaw = { - [reason: string]: { - kanaIn: string; - kanaOut: string; - rulesIn: ReasonTypeRaw[]; - rulesOut: ReasonTypeRaw[]; - }[]; + [reason: string]: ReasonRaw[]; +}; + +export type ReasonRaw = { + kanaIn: string; + kanaOut: string; + rulesIn: ReasonTypeRaw[]; + rulesOut: ReasonTypeRaw[]; }; export type ReasonVariant = [ -- cgit v1.2.3