diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2024-01-28 07:21:12 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-28 12:21:12 +0000 |
commit | a51f1ab2dc675a49bfeeb08cc24b97eb8d888e4a (patch) | |
tree | c137c63c509aa3d7ecc4330b3cd2b37e2c949b94 /types/ext | |
parent | 1b9422d026dce0aedf5d2b94495222cccde4963e (diff) |
Deinflection cycle testing (#477)
* Add ReasonRaw
* Set up cycle checks
* Use Deinflector.rulesMatch
* Remove checkRules
* Use Deinflector.rulesMatch
* Convert to test
* Rename
* Rename
Diffstat (limited to 'types/ext')
-rw-r--r-- | types/ext/deinflector.d.ts | 14 |
1 files changed, 8 insertions, 6 deletions
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 = [ |