Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
c0a7b91b
Unverified
Commit
c0a7b91b
authored
Jul 21, 2026
by
Joseph
Committed by
GitHub
Jul 21, 2026
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cna: use LayoutProps helper in TS layout templates (#95675)
Update create-next-app templates to use `LayoutProps`
parent
4dea35db
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
20 deletions
+4
-20
layout.tsx
...ges/create-next-app/templates/app-empty/ts/app/layout.tsx
+1
-5
layout.tsx
.../create-next-app/templates/app-tw-empty/ts/app/layout.tsx
+1
-5
layout.tsx
packages/create-next-app/templates/app-tw/ts/app/layout.tsx
+1
-5
layout.tsx
packages/create-next-app/templates/app/ts/app/layout.tsx
+1
-5
No files found.
packages/create-next-app/templates/app-empty/ts/app/layout.tsx
View file @
c0a7b91b
...
@@ -5,11 +5,7 @@ export const metadata: Metadata = {
...
@@ -5,11 +5,7 @@ export const metadata: Metadata = {
description
:
"Generated by create next app"
,
description
:
"Generated by create next app"
,
};
};
export
default
function
RootLayout
({
export
default
function
RootLayout
({
children
}:
LayoutProps
<
"/"
>
)
{
children
,
}:
Readonly
<
{
children
:
React
.
ReactNode
;
}
>
)
{
return
(
return
(
<
html
lang=
"en"
>
<
html
lang=
"en"
>
<
body
>
{
children
}
</
body
>
<
body
>
{
children
}
</
body
>
...
...
packages/create-next-app/templates/app-tw-empty/ts/app/layout.tsx
View file @
c0a7b91b
...
@@ -6,11 +6,7 @@ export const metadata: Metadata = {
...
@@ -6,11 +6,7 @@ export const metadata: Metadata = {
description
:
"Generated by create next app"
,
description
:
"Generated by create next app"
,
};
};
export
default
function
RootLayout
({
export
default
function
RootLayout
({
children
}:
LayoutProps
<
"/"
>
)
{
children
,
}:
Readonly
<
{
children
:
React
.
ReactNode
;
}
>
)
{
return
(
return
(
<
html
lang=
"en"
>
<
html
lang=
"en"
>
<
body
>
{
children
}
</
body
>
<
body
>
{
children
}
</
body
>
...
...
packages/create-next-app/templates/app-tw/ts/app/layout.tsx
View file @
c0a7b91b
...
@@ -17,11 +17,7 @@ export const metadata: Metadata = {
...
@@ -17,11 +17,7 @@ export const metadata: Metadata = {
description
:
"Generated by create next app"
,
description
:
"Generated by create next app"
,
};
};
export
default
function
RootLayout
({
export
default
function
RootLayout
({
children
}:
LayoutProps
<
"/"
>
)
{
children
,
}:
Readonly
<
{
children
:
React
.
ReactNode
;
}
>
)
{
return
(
return
(
<
html
<
html
lang=
"en"
lang=
"en"
...
...
packages/create-next-app/templates/app/ts/app/layout.tsx
View file @
c0a7b91b
...
@@ -17,11 +17,7 @@ export const metadata: Metadata = {
...
@@ -17,11 +17,7 @@ export const metadata: Metadata = {
description
:
"Generated by create next app"
,
description
:
"Generated by create next app"
,
};
};
export
default
function
RootLayout
({
export
default
function
RootLayout
({
children
}:
LayoutProps
<
"/"
>
)
{
children
,
}:
Readonly
<
{
children
:
React
.
ReactNode
;
}
>
)
{
return
(
return
(
<
html
lang=
"en"
className=
{
`${geistSans.variable} ${geistMono.variable}`
}
>
<
html
lang=
"en"
className=
{
`${geistSans.variable} ${geistMono.variable}`
}
>
<
body
>
{
children
}
</
body
>
<
body
>
{
children
}
</
body
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment