diff --git a/compat/src/index.d.ts b/compat/src/index.d.ts index 94aaa1fc4b..73a48973fe 100644 --- a/compat/src/index.d.ts +++ b/compat/src/index.d.ts @@ -78,7 +78,7 @@ declare namespace React { interface SVGAttributes extends JSXInternal.SVGAttributes {} - interface ReactSVG extends JSXInternal.SVGElements {} + interface ReactSVG extends JSXInternal.IntrinsicSVGElements {} type HTMLAttributeReferrerPolicy = | '' diff --git a/src/jsx.d.ts b/src/jsx.d.ts index a09d7d4f25..898bdd9f7d 100644 --- a/src/jsx.d.ts +++ b/src/jsx.d.ts @@ -2021,7 +2021,7 @@ export namespace JSXInternal { | SignalLike; } - export interface SVGElements { + export interface IntrinsicSVGElements { svg: SVGAttributes; animate: SVGAttributes; circle: SVGAttributes; @@ -2083,7 +2083,7 @@ export namespace JSXInternal { view: SVGAttributes; } - export interface IntrinsicElements extends SVGElements { + export interface IntrinsicElements extends IntrinsicSVGElements { // HTML a: HTMLAttributes; abbr: HTMLAttributes;