T
TanStack2y ago
sunny-green

How to get type of Component which create by using createLink() function? Thanks

How to get type of props in Component which create by using createLink() function? Thanks
1 Reply
rising-crimson
rising-crimson2y ago
here's what I did:
const RouterLink = createLink(MyLink)

type RouterLinkProps = React.ComponentProps<typeof RouterLink>
const RouterLink = createLink(MyLink)

type RouterLinkProps = React.ComponentProps<typeof RouterLink>

Did you find this page helpful?