aboutsummaryrefslogtreecommitdiff
path: root/ext/js/language/text-scanner.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/language/text-scanner.js')
-rw-r--r--ext/js/language/text-scanner.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/js/language/text-scanner.js b/ext/js/language/text-scanner.js
index f6bcde8d..d1b033e6 100644
--- a/ext/js/language/text-scanner.js
+++ b/ext/js/language/text-scanner.js
@@ -120,7 +120,7 @@ export class TextScanner extends EventDispatcher {
/** @type {boolean} */
this._preventNextClickScan = false;
- /** @type {?number} */
+ /** @type {?import('core').Timeout} */
this._preventNextClickScanTimer = null;
/** @type {number} */
this._preventNextClickScanTimerDuration = 50;
@@ -145,7 +145,7 @@ export class TextScanner extends EventDispatcher {
/** @type {boolean} */
this._canClearSelection = true;
- /** @type {?number} */
+ /** @type {?import('core').Timeout} */
this._textSelectionTimer = null;
/** @type {boolean} */
this._yomitanIsChangingTextSelectionNow = false;
@@ -995,7 +995,7 @@ export class TextScanner extends EventDispatcher {
async _scanTimerWait() {
const delay = this._delay;
const promise = /** @type {Promise<boolean>} */ (new Promise((resolve) => {
- /** @type {?number} */
+ /** @type {?import('core').Timeout} */
let timeout = setTimeout(() => {
timeout = null;
resolve(true);