Built-in types for Pages (Types improving) #76316
Unanswered
present-g
asked this question in
App Router
Replies: 1 comment
-
+1 export type NextLayout<Params = undefined, ParallelRoutes = {}> = {
children: ReactNode;
params: Promise<Params>;
} & ParallelRoutes; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, everyone!
Why do we have to manually define Page types? Why don’t you try giving us built-in types from the Next types? It’s a problem where there can be a lot of mistakes, especially after updating Next.
Just simple example:
Next types:
Some page:
https://nextjs.org/docs/app/building-your-application/upgrading/version-15#asynchronous-page
Beta Was this translation helpful? Give feedback.
All reactions