Skip to content

Commit

Permalink
Fix link types (#618)
Browse files Browse the repository at this point in the history
  • Loading branch information
xPapla committed Jul 6, 2023
1 parent 0f5f25d commit 7a89d98
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/router/src/react.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,11 @@ export type MakeLinkOptions<
TFrom extends RegisteredRoutesInfo['routePaths'] = '/',
TTo extends string = '',
> = LinkPropsOptions<TFrom, TTo> &
React.AnchorHTMLAttributes<HTMLAnchorElement> &
Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, '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 = {
Expand Down

0 comments on commit 7a89d98

Please sign in to comment.