Skip to content

Commit 321a593

Browse files
authored
Merge branch 'main' into empty-suspense
2 parents e0b5f2f + 5a56a83 commit 321a593

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

compat/src/index.d.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,13 @@ declare namespace React {
6565
export function startTransition(cb: () => void): void;
6666

6767
// HTML
68-
export import HTMLAttributes = JSXInternal.HTMLAttributes;
68+
export interface HTMLAttributes<T extends EventTarget>
69+
extends JSXInternal.HTMLAttributes<T> {}
6970
export import DetailedHTMLProps = JSXInternal.DetailedHTMLProps;
7071
export import CSSProperties = JSXInternal.CSSProperties;
72+
export interface SVGProps<T extends EventTarget>
73+
extends JSXInternal.SVGAttributes<T>,
74+
preact.ClassAttributes<T> {}
7175

7276
// Events
7377
export import TargetedEvent = JSXInternal.TargetedEvent;

0 commit comments

Comments
 (0)