aboutsummaryrefslogtreecommitdiff
path: root/test/dom-text-scanner.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/dom-text-scanner.test.js')
-rw-r--r--test/dom-text-scanner.test.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/dom-text-scanner.test.js b/test/dom-text-scanner.test.js
index b366cadd..4ec3a44d 100644
--- a/test/dom-text-scanner.test.js
+++ b/test/dom-text-scanner.test.js
@@ -85,8 +85,13 @@ function createAbsoluteGetComputedStyle(window) {
return (element, ...args) => {
const style = getComputedStyleOld(element, ...args);
return new Proxy(style, {
+ /**
+ * @param {CSSStyleDeclaration} target
+ * @param {string|symbol} property
+ * @returns {unknown}
+ */
get: (target, property) => {
- let result = /** @type {import('core').SafeAny} */ (target)[property];
+ let result = /** @type {Record<string|symbol, unknown>} */ (/** @type {unknown} */ (target))[property];
if (typeof result === 'string') {
/**
* @param {string} g0