From fd48f18f8aa05a362f3168cbddcc03659e7510db Mon Sep 17 00:00:00 2001 From: Kuuuube <61125188+Kuuuube@users.noreply.github.com> Date: Mon, 12 Feb 2024 01:10:52 -0500 Subject: Add and fix tests with options upgrades (#671) * Add and fix tests and options applying * Fix comma * Add test file to json.json * Fix direction of conjugation handlebars update * Add frequency and cloze-body-kana to upgrade * Use Array.isArray() instead of arbitrary length check * Add pitch-accent-categories handlebar * programmatically get upgrade files * add type --------- Co-authored-by: Cashew --- types/ext/options-util.d.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'types') diff --git a/types/ext/options-util.d.ts b/types/ext/options-util.d.ts index 62cf5ab6..18201e18 100644 --- a/types/ext/options-util.d.ts +++ b/types/ext/options-util.d.ts @@ -24,3 +24,8 @@ export type IntermediateOptions = Core.SafeAny; export type LegacyUpdateFunction = (options: LegacyOptions) => void; export type UpdateFunction = (options: IntermediateOptions) => void | Promise; + +export type TemplateFieldUpdate = { + version: number; + changes: string; +}; -- cgit v1.2.3