Skip to content

Commit

Permalink
add missing SvgProps and make the generics mandatory (#4071)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock committed Jul 17, 2023
1 parent 34e37c5 commit 5a56a83
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion compat/src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,13 @@ declare namespace React {
export function startTransition(cb: () => void): void;

// HTML
export import HTMLAttributes = JSXInternal.HTMLAttributes;
export interface HTMLAttributes<T extends EventTarget>
extends JSXInternal.HTMLAttributes<T> {}
export import DetailedHTMLProps = JSXInternal.DetailedHTMLProps;
export import CSSProperties = JSXInternal.CSSProperties;
export interface SVGProps<T extends EventTarget>
extends JSXInternal.SVGAttributes<T>,
preact.ClassAttributes<T> {}

// Events
export import TargetedEvent = JSXInternal.TargetedEvent;
Expand Down

0 comments on commit 5a56a83

Please sign in to comment.