Skip to content

Commit

Permalink
Update global.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 authored Sep 3, 2024
1 parent fb4ff21 commit 5c9994c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion global.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
// global.d.ts
declare namespace JSX {
interface IntrinsicElements {
'custom-element': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
'custom-element': React.DetailedHTMLProps<
React.HTMLAttributes<HTMLElement> & { class?: string },
HTMLElement
>;
}
}

0 comments on commit 5c9994c

Please sign in to comment.