PageLayout
tipo Since 1.5.0
Layout con nombre de la página cuyo ID de ruta es Id, tal como lo resuelven su definePage y
los +group.ts de sus carpetas: un nombre, false sin layout con nombre o, sin las declaraciones
generadas, LayoutName. Tipa useLayout() en el <script> de cada página.
ts
import type { PageLayout } from "@meekojs/meeko/framework";Source code src/shared/layout.ts:55
Declaración #
ts
type PageLayout<Id extends string> = Id extends keyof GeneratedPageLayouts ? GeneratedPageLayouts[Id] : LayoutNameType parameters #
-
Idextends string ID de la ruta, como
"/dashboard".
Example #
ts
import type { PageLayout } from "@meekojs/meeko/framework";
type DashboardLayout = PageLayout<"/dashboard">; // "dashboard"