From 13278a5cf67de69678d8c4c5fb97e6eb00c94c11 Mon Sep 17 00:00:00 2001 From: James Maa Date: Thu, 9 May 2024 15:42:35 +0800 Subject: Update eslint unsafe rule (#887) * Enable @typescript-eslint/no-unsafe-assignment * Updates * Add missing import * Updates * Fix types? * Fix tests * Address comments * Move TextProcessorVariant to types * Update types/ext/translation-internal.d.ts Co-authored-by: StefanVukovic99 Signed-off-by: James Maa --------- Signed-off-by: James Maa Co-authored-by: toasted-nutbread Co-authored-by: StefanVukovic99 --- dev/dictionary-validate.js | 1 + 1 file changed, 1 insertion(+) (limited to 'dev') diff --git a/dev/dictionary-validate.js b/dev/dictionary-validate.js index b770f311..3c7cf30b 100644 --- a/dev/dictionary-validate.js +++ b/dev/dictionary-validate.js @@ -80,6 +80,7 @@ async function validateDictionaryBanks(mode, entries, schemasDetails) { export async function validateDictionary(mode, archiveData, schemas) { const entries = await getDictionaryArchiveEntries(archiveData); const indexFileName = getIndexFileName(); + /** @type {import('dictionary-data').Index} */ const index = await getDictionaryArchiveJson(entries, indexFileName); const version = index.format || index.version; -- cgit v1.2.3