Skip to content

Commit

Permalink
Merge pull request #2631 from jeremybanka/fix-incomplete-forward-ref-…
Browse files Browse the repository at this point in the history
…component

Add `$$typeof` brand back to ForwardRefComponent
  • Loading branch information
mergetron[bot] committed Apr 19, 2024
2 parents 2e2d273 + f0e7e40 commit caaac5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/framer-motion/src/render/html/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ export interface HTMLRenderState {
/**
* @public
*/
export type ForwardRefComponent<T, P> = (
export type ForwardRefComponent<T, P> = { readonly $$typeof: symbol } & ((
props: PropsWithoutRef<P> & RefAttributes<T>
) => JSX.Element
) => JSX.Element)

/**
* Support for React component props
Expand Down

0 comments on commit caaac5b

Please sign in to comment.