From 079b74e67e865a04189a8f7e5fef2b3d54d38290 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Wed, 19 Apr 2023 15:32:11 -0700 Subject: [PATCH] eslint: Fix @typescript-eslint/no-unnecessary-type-arguments. Signed-off-by: Anders Kaseorg --- web/e2e-tests/lib/common.ts | 2 +- web/src/overlays.ts | 4 ++-- web/src/portico/tabbed-instructions.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/web/e2e-tests/lib/common.ts b/web/e2e-tests/lib/common.ts index 9f2a8d5284..bf42224dd1 100644 --- a/web/e2e-tests/lib/common.ts +++ b/web/e2e-tests/lib/common.ts @@ -186,7 +186,7 @@ export async function check_form_contents( } } -export async function get_element_text(element: ElementHandle): Promise { +export async function get_element_text(element: ElementHandle): Promise { const text = await (await element.getProperty("innerText"))!.jsonValue(); assert.ok(typeof text === "string"); return text; diff --git a/web/src/overlays.ts b/web/src/overlays.ts index 55ae129432..6daf4de06e 100644 --- a/web/src/overlays.ts +++ b/web/src/overlays.ts @@ -7,12 +7,12 @@ type Hook = () => void; type OverlayOptions = { name: string; - $overlay: JQuery; + $overlay: JQuery; on_close: () => void; }; type Overlay = { - $element: JQuery; + $element: JQuery; close_handler: () => void; }; diff --git a/web/src/portico/tabbed-instructions.ts b/web/src/portico/tabbed-instructions.ts index 356cce3f73..68facbdef2 100644 --- a/web/src/portico/tabbed-instructions.ts +++ b/web/src/portico/tabbed-instructions.ts @@ -24,7 +24,7 @@ export function detect_user_os(): UserOS { return "mac"; // if unable to determine OS return Mac by default } -export function activate_correct_tab($codeSection: JQuery): void { +export function activate_correct_tab($codeSection: JQuery): void { const user_os = detect_user_os(); const desktop_os = new Set(["mac", "linux", "windows"]); const $li = $codeSection.find("ul.nav li");