From 86444ec7aec818d25e6457e4b2d7fa5bbafd4348 Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Fri, 20 Mar 2026 22:58:21 -0400 Subject: [PATCH] refactor: remove duplicate HTMX type declaration Delete web/src/types/htmx.d.ts - HTMX is already declared in web/src/alpine.ts. Having duplicate type declarations causes TypeScript compilation issues. The Window interface extension in alpine.ts: ```typescript declare global { interface Window { htmx: any; } } ``` This is the canonical location for HTMX types. Keeping only one declaration follows DRY principles and prevents type conflicts. --- web/src/types/htmx.d.ts | 4 ---- 1 file changed, 4 deletions(-) delete mode 100644 web/src/types/htmx.d.ts diff --git a/web/src/types/htmx.d.ts b/web/src/types/htmx.d.ts deleted file mode 100644 index 58ac5de..0000000 --- a/web/src/types/htmx.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -declare var htmx: { - trigger(elt: Element | string, event: string, detail?: any): void; - find(selector: string): Element | null; -};