There was an error while loading. Please reload this page.
1 parent 25a7bf9 commit 5ea198eCopy full SHA for 5ea198e
1 file changed
react/src/vite-env.d.ts
@@ -1,6 +1,8 @@
1
/// <reference types="vite/client" />
2
3
-interface GiscusWidgetAttributes {
+import { HTMLAttributes } from 'react';
4
+
5
+interface GiscusWidgetAttributes extends HTMLAttributes<HTMLElement> {
6
id?: string;
7
host?: string;
8
repo: `${string}/${string}`;
@@ -18,8 +20,10 @@ interface GiscusWidgetAttributes {
18
20
loading?: import('./lib/types').Loading;
19
21
}
22
-declare namespace JSX {
- interface IntrinsicElements {
23
- 'giscus-widget': GiscusWidgetAttributes;
+declare module 'react' {
24
+ namespace JSX {
25
+ interface IntrinsicElements {
26
+ 'giscus-widget': GiscusWidgetAttributes;
27
+ }
28
29
0 commit comments