From 2ebd86224d2c12fdad4e4b23276129832754cf6d Mon Sep 17 00:00:00 2001 From: Guilherme Higashi Date: Tue, 24 Oct 2023 21:41:16 -0400 Subject: [PATCH] Fix `Link` type in React (#1659) * fix InertiaLink type * Fix types --------- Co-authored-by: Jonathan Reinink --- packages/react/src/Link.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/react/src/Link.ts b/packages/react/src/Link.ts index 0ced488b0..d92d81d0d 100755 --- a/packages/react/src/Link.ts +++ b/packages/react/src/Link.ts @@ -37,9 +37,7 @@ export type InertiaLinkProps = BaseInertiaLinkProps & Omit, keyof BaseInertiaLinkProps> & Omit, keyof BaseInertiaLinkProps> -type InertiaLink = React.FunctionComponent - -const Link: InertiaLink = forwardRef( +const Link = forwardRef( ( { children,