T
TanStack17mo ago
wise-white

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
plain-purple
plain-purple17mo 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?