next.js
902ad4ad - fix: missing `next/link` types with `typedRoutes` (#82814)

Commit
140 days ago
fix: missing `next/link` types with `typedRoutes` (#82814) # Problem When `typedRoutes` is enabled, some of the types are missing. For example, doing `import { useLinkStatus } from 'next/link'` will receive a type error where the `useLinkStatus` cannot be found from `next/link`. <img width="824" height="141" alt="image" src="https://github.com/user-attachments/assets/f81ae41b-c5b8-4dea-b92a-5f15c05c41f9" /> # Solution Re-export everything from `next/dist/client/link.js` from the generated `.next/types/link.d.ts` --------- Co-authored-by: vercel[bot] <35613825+vercel[bot]@users.noreply.github.com>
Parents
Loading