Next.js · Senior · Question 46 of 75

Which command generates the PageProps and LayoutProps types without running the dev server?

Explanation

next typegen (since Next.js 15.5) generates global type helpers from the route structure - handy in CI before tsc --noEmit. The types are also updated during next dev and next build.

Further reading

Problem with a question

Next.js · Senior · question 46

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