From 5a56a830b6abf23009d7e2b5a0d0b7707a86a8e8 Mon Sep 17 00:00:00 2001 From: Jovi De Croock Date: Mon, 17 Jul 2023 09:54:16 +0200 Subject: [PATCH] add missing SvgProps and make the generics mandatory (#4071) --- compat/src/index.d.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/compat/src/index.d.ts b/compat/src/index.d.ts index 28125420bc5..339b26c623f 100644 --- a/compat/src/index.d.ts +++ b/compat/src/index.d.ts @@ -65,9 +65,13 @@ declare namespace React { export function startTransition(cb: () => void): void; // HTML - export import HTMLAttributes = JSXInternal.HTMLAttributes; + export interface HTMLAttributes + extends JSXInternal.HTMLAttributes {} export import DetailedHTMLProps = JSXInternal.DetailedHTMLProps; export import CSSProperties = JSXInternal.CSSProperties; + export interface SVGProps + extends JSXInternal.SVGAttributes, + preact.ClassAttributes {} // Events export import TargetedEvent = JSXInternal.TargetedEvent;