aboutsummaryrefslogtreecommitdiff
path: root/ext/js/media/audio-downloader.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2023-11-27 14:55:27 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2023-11-27 14:55:27 -0500
commit7aed9a371b0d74c0d75179a08068e8935b76d780 (patch)
tree2d895b20e31cb03c8200e4429d987c6d253b1da7 /ext/js/media/audio-downloader.js
parent5dc16745468c229e7c31f6cddaad83fb9c36b98f (diff)
Update types
Diffstat (limited to 'ext/js/media/audio-downloader.js')
-rw-r--r--ext/js/media/audio-downloader.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/js/media/audio-downloader.js b/ext/js/media/audio-downloader.js
index 7b236790..0847d479 100644
--- a/ext/js/media/audio-downloader.js
+++ b/ext/js/media/audio-downloader.js
@@ -25,10 +25,10 @@ import {SimpleDOMParser} from '../dom/simple-dom-parser.js';
export class AudioDownloader {
/**
- * @param {{japaneseUtil: JapaneseUtil, requestBuilder: RequestBuilder}} details
+ * @param {{japaneseUtil: import('../language/sandbox/japanese-util.js').JapaneseUtil, requestBuilder: RequestBuilder}} details
*/
constructor({japaneseUtil, requestBuilder}) {
- /** @type {JapaneseUtil} */
+ /** @type {import('../language/sandbox/japanese-util.js').JapaneseUtil} */
this._japaneseUtil = japaneseUtil;
/** @type {RequestBuilder} */
this._requestBuilder = requestBuilder;
@@ -314,7 +314,7 @@ export class AudioDownloader {
*/
async _downloadAudioFromUrl(url, sourceType, idleTimeout) {
let signal;
- /** @type {?(done: boolean) => void} */
+ /** @type {?import('request-builder.js').ProgressCallback} */
let onProgress = null;
/** @type {?number} */
let idleTimer = null;