Skip to content

Commit

Permalink
chore: ignore data attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Desdaemon committed Jan 3, 2024
1 parent be234db commit 67c014b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/jsx.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ interface HtmxBuiltinExtensions {
* Alternative attribute variants recognized by htmx.
*/
type HtmxData<T> = {
/** @ignore */
[K in keyof T as K extends `hx-${string}` ? `data-${K}` : never]: T[K]
}

Expand Down

0 comments on commit 67c014b

Please sign in to comment.