ckastbjerg / next-type-safe-routes

Never should your users experience broken links again!
MIT License
70 stars 5 forks source link

Info: How does this package differ with TRPC #37

Open martin-fv opened 2 years ago

martin-fv commented 2 years ago

Hi, great package, however I'd like to know how this differs with TRPC, which also offers type-safety for server routes, which also has a NextJs integration: https://trpc.io/docs/nextjs

Would love to hear your opinion...

kopach commented 1 year ago

I'm not familiar with this much, but from what I can see - trpc validates API routes while this package can validate path's passed to next Link component. This helps to eliminate dead links.