Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5a56a83

Browse files
authoredJul 17, 2023
add missing SvgProps and make the generics mandatory (#4071)
1 parent 34e37c5 commit 5a56a83

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎compat/src/index.d.ts

Lines changed: 5 additions & 1 deletion
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)
Please sign in to comment.