Skip to content

Commit

Permalink
Fix Link type in React (#1659)
Browse files Browse the repository at this point in the history
* fix InertiaLink type

* Fix types

---------

Co-authored-by: Jonathan Reinink <[email protected]>
  • Loading branch information
guihigashi and reinink authored Oct 25, 2023
1 parent 74d682c commit 2ebd862
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/react/src/Link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ export type InertiaLinkProps = BaseInertiaLinkProps &
Omit<React.HTMLAttributes<HTMLElement>, keyof BaseInertiaLinkProps> &
Omit<React.AllHTMLAttributes<HTMLElement>, keyof BaseInertiaLinkProps>

type InertiaLink = React.FunctionComponent<InertiaLinkProps>

const Link: InertiaLink = forwardRef<unknown, InertiaLinkProps>(
const Link = forwardRef<unknown, InertiaLinkProps>(
(
{
children,
Expand Down

0 comments on commit 2ebd862

Please sign in to comment.