Skip to content

Commit

Permalink
Add missing PropsWithRef type to fix preactjs#4293
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanlchan committed Mar 31, 2024
1 parent 757746a commit 8a6b642
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compat/src/index.d.ts
Expand Up @@ -178,7 +178,7 @@ declare namespace React {
C extends ComponentType<any> | keyof JSXInternal.IntrinsicElements
> = C extends new (props: infer P) => Component<any, any>
? PropsWithoutRef<P> & RefAttributes<InstanceType<C>>
: ComponentProps<C>;
: PropsWithRef<ComponentProps<C>>;

This comment has been minimized.

Copy link
@akornatskyy

akornatskyy Apr 1, 2024

yes, this solves the compile issue.


export function flushSync<R>(fn: () => R): R;
export function flushSync<A, R>(fn: (a: A) => R, a: A): R;
Expand Down

0 comments on commit 8a6b642

Please sign in to comment.