From 351640e604dd4fc7a001084967eedfad8215b73c Mon Sep 17 00:00:00 2001 From: mkelvers Date: Fri, 5 Jun 2026 16:23:53 +0200 Subject: [PATCH] refactor: remove unused htmx global type declaration --- static/htmx.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/static/htmx.ts b/static/htmx.ts index cadda86..9a2aeb9 100644 --- a/static/htmx.ts +++ b/static/htmx.ts @@ -2,14 +2,6 @@ export {}; import { onReady } from "./utils"; -declare global { - interface Window { - htmx?: { - process: (element: Element) => void; - }; - } -} - type ToastFn = (opts: { message: string; duration?: number }) => void; const getToast = (): ToastFn | null => { @@ -44,8 +36,6 @@ const getTriggerFromHtmxEvent = (event: Event): Element | null => { }; onReady(() => { - window.htmx?.process(document.body); - document.addEventListener("htmx:beforeRequest", (event) => { setBusy(getTriggerFromHtmxEvent(event), true); });