Skip to content

Commit

Permalink
fix: use ForwardRefRenderFunction instead of deprecated RefForwarding…
Browse files Browse the repository at this point in the history
…Component (#3941)

In particular, that type was removed in React 18 and blocks adoption otherwise.
  • Loading branch information
RobinCsl committed Aug 2, 2023
1 parent 3b3dd2d commit a70687c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/orbit-components/src/common/types.d.ts
Expand Up @@ -17,7 +17,7 @@ export type Event<T> = (event: T) => void | Promise<void>;
export type Component =
| string
| React.ComponentType<any>
| React.RefForwardingComponent<HTMLElement, any>;
| React.ForwardRefRenderFunction<HTMLElement, any>;
export type Size = "small" | "normal" | "large" | "extraLarge";
export type InputSize = "small" | "normal";

Expand Down

0 comments on commit a70687c

Please sign in to comment.