Skip to content

Commit

Permalink
add a type definition for the has='' attribute for use with @lume/ele…
Browse files Browse the repository at this point in the history
…ment
  • Loading branch information
trusktr committed Feb 21, 2022
1 parent 8b29d7e commit 10d4598
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/attribute-types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Import this file with `import type` if using `@lume/element` to register the
// `has=""` attribute type for JSX templates.

declare module '@lume/element' {
namespace JSX {
interface CustomAttributes<T> {
has?: string
}
}
}

0 comments on commit 10d4598

Please sign in to comment.