From 13278a5cf67de69678d8c4c5fb97e6eb00c94c11 Mon Sep 17 00:00:00 2001 From: James Maa Date: Thu, 9 May 2024 15:42:35 +0800 Subject: Update eslint unsafe rule (#887) * Enable @typescript-eslint/no-unsafe-assignment * Updates * Add missing import * Updates * Fix types? * Fix tests * Address comments * Move TextProcessorVariant to types * Update types/ext/translation-internal.d.ts Co-authored-by: StefanVukovic99 Signed-off-by: James Maa --------- Signed-off-by: James Maa Co-authored-by: toasted-nutbread Co-authored-by: StefanVukovic99 --- ext/js/accessibility/google-docs-xray.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/js/accessibility') diff --git a/ext/js/accessibility/google-docs-xray.js b/ext/js/accessibility/google-docs-xray.js index 15e1d50b..6723a468 100644 --- a/ext/js/accessibility/google-docs-xray.js +++ b/ext/js/accessibility/google-docs-xray.js @@ -17,7 +17,7 @@ /** Entry point. */ function main() { - /** @type {Window} */ + /** @type {unknown} */ // @ts-expect-error - Firefox Xray vision const window2 = window.wrappedJSObject; if (!(typeof window2 === 'object' && window2 !== null)) { return; } -- cgit v1.2.3