From 36c40ff671ae1f8a05aac77c8694e9bccdda85fb Mon Sep 17 00:00:00 2001 From: Cashew <52880648+Scrub1492@users.noreply.github.com> Date: Sat, 13 Jan 2024 11:58:48 +0700 Subject: type updates (#500) * type updates * remove comments * fix comment * remove types --- ext/js/dom/dom-text-scanner.js | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'ext/js/dom/dom-text-scanner.js') diff --git a/ext/js/dom/dom-text-scanner.js b/ext/js/dom/dom-text-scanner.js index 21770a70..e9105741 100644 --- a/ext/js/dom/dom-text-scanner.js +++ b/ext/js/dom/dom-text-scanner.js @@ -212,10 +212,8 @@ export class DOMTextScanner { /** * Gets information about how whitespace characters are treated. - * @param {Text} textNode The text node to check. - * @returns {{preserveNewlines: boolean, preserveWhitespace: boolean}} Information about the whitespace. - * The value of `preserveNewlines` indicates whether or not newline characters are treated as line breaks. - * The value of `preserveWhitespace` indicates whether or not sequences of whitespace characters are collapsed. + * @param {Text} textNode + * @returns {import('dom-text-scanner').WhitespaceSettings} */ _getWhitespaceSettings(textNode) { if (this._forcePreserveWhitespace) { @@ -412,13 +410,8 @@ export class DOMTextScanner { } /** - * Gets seek information about an element. - * @param {Element} element The element to check. - * @returns {{enterable: boolean, newlines: number}} The seek information. - * The `enterable` value indicates whether the content of this node should be entered. - * The `newlines` value corresponds to the number of newline characters that should be added. - * - 1 newline corresponds to a simple new line in the layout. - * - 2 newlines corresponds to a significant visual distinction since the previous content. + * @param {Element} element + * @returns {import('dom-text-scanner').ElementSeekInfo} */ static getElementSeekInfo(element) { let enterable = true; -- cgit v1.2.3