Skip to content

Commit

Permalink
fix: use correct return type for View.Port (#1883)
Browse files Browse the repository at this point in the history
  • Loading branch information
9inpachi authored Apr 2, 2024
1 parent 7607bb0 commit fd91d6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/web/View.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ const HtmlView = React.forwardRef(
}
)

export type ViewportProps = { Port: () => React.ReactNode } & React.ForwardRefExoticComponent<
export type ViewportProps = { Port: () => JSX.Element } & React.ForwardRefExoticComponent<
ViewProps & React.RefAttributes<HTMLElement | THREE.Group>
>

Expand Down

0 comments on commit fd91d6f

Please sign in to comment.