diff options
Diffstat (limited to 'ext/js/dictionary')
-rw-r--r-- | ext/js/dictionary/dictionary-importer.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ext/js/dictionary/dictionary-importer.js b/ext/js/dictionary/dictionary-importer.js index fbfe40d0..16998a8f 100644 --- a/ext/js/dictionary/dictionary-importer.js +++ b/ext/js/dictionary/dictionary-importer.js @@ -734,7 +734,8 @@ export class DictionaryImporter { const results = []; for (const file of files) { const content = await this._getData(file, new TextWriter()); - const entries = /** @type {unknown} */ (parseJson(content)); + /** @type {unknown} */ + const entries = parseJson(content); startIndex = progressData.index; this._progress(); @@ -748,8 +749,8 @@ export class DictionaryImporter { this._progress(); if (Array.isArray(entries)) { - for (const entry of entries) { - results.push(convertEntry(/** @type {TEntry} */ (entry), dictionaryTitle)); + for (const entry of /** @type {TEntry[]} */ (entries)) { + results.push(convertEntry(entry, dictionaryTitle)); } } } |