Skip to content

Commit 058573c

Browse files
authored
fix(types) make React.SVGAttributes generic (#4863)
1 parent 2a48070 commit 058573c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compat/src/index.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ declare namespace React {
8787
extends JSXInternal.SVGAttributes<T>,
8888
preact.ClassAttributes<T> {}
8989

90-
interface SVGAttributes extends JSXInternal.SVGAttributes {}
90+
interface SVGAttributes<T extends EventTarget = SVGElement>
91+
extends JSXInternal.SVGAttributes<T> {}
9192

9293
interface ReactSVG extends JSXInternal.IntrinsicSVGElements {}
9394

0 commit comments

Comments
 (0)