From f5840a6f1ea4c8926e13d36485d4c5faa1f94d51 Mon Sep 17 00:00:00 2001 From: Samsam Ahmadi Date: Thu, 17 Aug 2023 10:24:49 +0200 Subject: [PATCH] fix: update the name of type --- compat/src/index.d.ts | 2 +- src/jsx.d.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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;