Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When using createLink(), activeProps type should allow component props #2079

Open
olivierpascal opened this issue Aug 3, 2024 · 0 comments · May be fixed by #2092 or #2347
Open

When using createLink(), activeProps type should allow component props #2079

olivierpascal opened this issue Aug 3, 2024 · 0 comments · May be fixed by #2092 or #2347
Labels
types Changes to the typescript types

Comments

@olivierpascal
Copy link

olivierpascal commented Aug 3, 2024

Describe the bug

image

TS error: Object literal may only specify known properties, and 'selected' does not exist in type 'AnchorHTMLAttributes<HTMLAnchorElement> | (() => AnchorHTMLAttributes<HTMLAnchorElement>)'.

Beside, no className should be provided to component to make this function completely agnostic.

Your Example Website or App

https://stackblitz.com/edit/github-ayifmj?file=src%2Fmain.tsx,src%2Froutes%2Findex.tsx

Steps to Reproduce the Bug or Issue

Click on the stackblitz link and notice the TS error.

Expected behavior

No TS error.

Screenshots or Videos

No response

Platform

  • OS: [e.g. macOS, Windows, Linux]
  • Browser: [e.g. Chrome, Safari, Firefox]
  • Version: [e.g. 91.1]

Additional context

No response

schiller-manuel added a commit that referenced this issue Aug 6, 2024
…o custom link created through `createLink`

fixes #2079
@SeanCassiere SeanCassiere added the types Changes to the typescript types label Aug 9, 2024
@chorobin chorobin linked a pull request Sep 15, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
types Changes to the typescript types
Projects
None yet
2 participants