Merged in chore/typegen-nextjs-routes (pull request #3147)
Make check-types dependent on next typegen * add typegen as a prestep Approved-by: Anton Gunnarsson
This commit is contained in:
@@ -25,9 +25,9 @@ import { getMessages } from "@/i18n"
|
||||
import ClientIntlProvider from "@/i18n/Provider"
|
||||
import { setLang } from "@/i18n/serverContext"
|
||||
|
||||
import type { LayoutProps } from "@/.next/types/app/[lang]/(no-layout)/layout"
|
||||
|
||||
export default async function RootLayout(props: LayoutProps) {
|
||||
// Unable to use LayoutProps directly, probably due to parallel routes
|
||||
type Props = Pick<LayoutProps<"/[lang]">, "children" | "params">
|
||||
export default async function RootLayout(props: Props) {
|
||||
const params = await props.params
|
||||
|
||||
const { children } = props
|
||||
|
||||
Reference in New Issue
Block a user