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:
Joakim Jäderberg
2025-11-13 09:28:07 +00:00
parent 3d628a3757
commit f6b06556f6
6 changed files with 15 additions and 6 deletions

View File

@@ -1,8 +1,11 @@
import styles from "./layout.module.css"
import type { LayoutProps } from "@/.next/types/app/[lang]/(live)/(public)/(contentTypes)/layout"
export default function ContentTypeLayout(props: LayoutProps) {
// Unable to use LayoutProps directly, probably due to parallel routes and/or page groups
type Props = Pick<
LayoutProps<"/[lang]">,
"children" | "preview" | "breadcrumbs"
>
export default function ContentTypeLayout(props: Props) {
return (
<section className={styles.layout}>
{props.preview}