Hi, I'm having some issues with typing usage of Link with TypeScript. I'm pretty new to TypeScript so I'm probably doing something wrong, but I really can't figure out if it's an actual problem with the type definitions of reach router or not.
I've created a repo on github to reproduce the issue:
Hi @alxl, thanks for your reply. Yes the example is contrived, that's just to synthesise the issue I'm having. In reality it's rather a NavLink implementation which adds a className if the link is active (current route). Your example makes sense to me, but it doesn't solve the issue I'm having. The compiler still complains about the same thing exactly. Did you try on your side?