Next.js · Senior · Question 38 of 75

What is typedRoutes useful for?

Explanation

Next.js generates types for all routes, and a typo in href="/dashbord" becomes a compile error. The same generated types power the PageProps/LayoutProps helpers. The option doesn't affect routing speed.

Further reading

Problem with a question

Next.js · Senior · question 38

Test yourself

Take the Next.js · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz