Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ export default function Layout(props: LayoutProps<'/dashboard'>) {
> **Good to know**:
>
> - Types are generated during `next dev`, `next build` or `next typegen`.
> - After type generation, the `LayoutProps` helper is globally available. It doesn't need to be imported.

### Root Layout

Expand Down
1 change: 1 addition & 0 deletions docs/01-app/03-api-reference/03-file-conventions/page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ export default async function Page(props: PageProps<'/blog/[slug]'>) {
> - Using a literal route (e.g. `'/blog/[slug]'`) enables autocomplete and strict keys for `params`.
> - Static routes resolve `params` to `{}`.
> - Types are generated during `next dev`, `next build`, or with `next typegen`.
> - After type generation, the `PageProps` helper is globally available. It doesn't need to be imported.

## Examples

Expand Down
1 change: 1 addition & 0 deletions docs/01-app/03-api-reference/03-file-conventions/route.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ export async function GET(_req: NextRequest, ctx: RouteContext<'/users/[id]'>) {
> **Good to know**
>
> - Types are generated during `next dev`, `next build` or `next typegen`.
> - After type generation, the `RouteContext` helper is globally available. It doesn't need to be imported.

## Examples

Expand Down
Loading