From c8ea41b049c887794e4dd87b690b3031b98458b9 Mon Sep 17 00:00:00 2001 From: silverwind Date: Sun, 15 Dec 2024 22:02:32 +0100 Subject: Fix remaining typescript issues, enable `tsc` (#32840) Fixes 79 typescript errors. Discovered at least two bugs in `notifications.ts`, and I'm pretty sure this feature was at least partially broken and may still be, I don't really know how to test it. After this, only like ~10 typescript errors remain in the codebase but those are harder to solve. --------- Co-authored-by: wxiaoguang --- web_src/js/modules/tippy.ts | 1 - 1 file changed, 1 deletion(-) (limited to 'web_src/js/modules') diff --git a/web_src/js/modules/tippy.ts b/web_src/js/modules/tippy.ts index ce0b3cbc39..4e7f1ac093 100644 --- a/web_src/js/modules/tippy.ts +++ b/web_src/js/modules/tippy.ts @@ -16,7 +16,6 @@ export function createTippy(target: Element, opts: TippyOpts = {}): Instance { // because we should use our own wrapper functions to handle them, do not let the user override them const {onHide, onShow, onDestroy, role, theme, arrow, ...other} = opts; - // @ts-expect-error: wrong type derived by typescript const instance: Instance = tippy(target, { appendTo: document.body, animation: false, -- cgit v1.2.3