From 67c014ba81df436edecc7c778e307756430364e1 Mon Sep 17 00:00:00 2001 From: Viet Dinh <54ckb0y789@gmail.com> Date: Wed, 3 Jan 2024 14:53:45 -0500 Subject: [PATCH] chore: ignore data attributes --- src/jsx.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/jsx.d.ts b/src/jsx.d.ts index d1dfdae..f22fb06 100644 --- a/src/jsx.d.ts +++ b/src/jsx.d.ts @@ -164,6 +164,7 @@ interface HtmxBuiltinExtensions { * Alternative attribute variants recognized by htmx. */ type HtmxData = { + /** @ignore */ [K in keyof T as K extends `hx-${string}` ? `data-${K}` : never]: T[K] }