fix: use explicit children type in RootLayout (CI typecheck)
CI / lint + typecheck + test + build (push) Canceled after 0s

LayoutProps<'/'> is a Next-generated global type that only exists after
next typegen/build creates .next/types. Fresh CI clones fail tsc --noEmit
because .next doesn't exist yet. Use Readonly<{children}> — no dependency
on generated types.
This commit is contained in:
asepharyana
2026-09-19 21:54:31 +07:00
parent e288f659c2
commit 6c6330cd7a
+1 -1
View File
@@ -18,7 +18,7 @@ export const metadata: Metadata = {
description: "Generated by create next app",
};
export default function RootLayout({ children }: LayoutProps<"/">) {
export default function RootLayout({ children }: Readonly<{ children: React.ReactNode }>) {
return (
<html
lang="en"