From f5fe5564f4ab3b1e03313272976bca3394acd5e8 Mon Sep 17 00:00:00 2001 From: Tanner Linsley Date: Thu, 6 Jul 2023 17:01:35 -0600 Subject: [PATCH] fix: link types This reverts commit 92655370a14761aaf59cacb86b1f7675b035d354. --- packages/router/src/react.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/router/src/react.tsx b/packages/router/src/react.tsx index 4b4a5c8317..8af3d0a751 100644 --- a/packages/router/src/react.tsx +++ b/packages/router/src/react.tsx @@ -103,10 +103,11 @@ export type MakeLinkOptions< TFrom extends RegisteredRoutesInfo['routePaths'] = '/', TTo extends string = '', > = LinkPropsOptions & - React.AnchorHTMLAttributes & Omit, 'children'> & { // If a function is passed as a child, it will be given the `isActive` boolean to aid in further styling on the element it returns - children?: ReactNode | ((state: { isActive: boolean }) => ReactNode) + children?: + | React.ReactNode + | ((state: { isActive: boolean }) => React.ReactNode) } export type PromptProps = {