diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2023-11-27 17:43:53 -0500 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2023-11-27 17:43:53 -0500 |
commit | 29317da4ea237557e1805a834913dad73c51ed8a (patch) | |
tree | e19ff6014774b42a95c22dbc7874b51d7bc3bf66 /ext/js/language/translator.js | |
parent | a96be7d413c8f1714f0d1b44b3987f2eb87b22d8 (diff) |
Update offscreen
Diffstat (limited to 'ext/js/language/translator.js')
-rw-r--r-- | ext/js/language/translator.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/js/language/translator.js b/ext/js/language/translator.js index c21b16b1..aa1b71dd 100644 --- a/ext/js/language/translator.js +++ b/ext/js/language/translator.js @@ -157,7 +157,7 @@ export class Translator { /** * Gets a list of frequency information for a given list of term-reading pairs * and a list of dictionaries. - * @param {{term: string, reading: string|null}[]} termReadingList An array of `{term, reading}` pairs. If reading is null, + * @param {import('translator').TermReadingList} termReadingList An array of `{term, reading}` pairs. If reading is null, * the reading won't be compared. * @param {string[]} dictionaries An array of dictionary names. * @returns {Promise<import('translator').TermFrequencySimple[]>} An array of term frequencies. @@ -203,7 +203,7 @@ export class Translator { * @param {Map<string, import('translation').FindTermDictionary>} enabledDictionaryMap * @param {import('translation').FindTermsOptions} options * @param {TranslatorTagAggregator} tagAggregator - * @returns {Promise<{dictionaryEntries: import('dictionary').TermDictionaryEntry[], originalTextLength: number}>} + * @returns {Promise<import('translator').FindTermsResult>} */ async _findTermsInternal(text, enabledDictionaryMap, options, tagAggregator) { if (options.removeNonJapaneseCharacters) { |