Skip to content
Meeko
Type to search the guides and the API reference. Open it from any page with / or Ctrl K; move with the arrow keys and open a result with Enter.
Get started

Contents

On this page

Not translated yet

This page has not been translated into English yet, so it is shown in Spanish.

PageBodyDefinePage

tipo Since 1.8.0

definePage tal como lo ven meeko check y el editor en una página con código de nivel superior en <script server>: D son sus exports, los data que reciben layoutProps y head en ejecución.

ts
import type { PageBodyDefinePage } from "@meekojs/meeko/framework";

Source code src/app/definitions/define-page.ts:523

Declaración #

ts
type PageBodyDefinePage<D> = <const P extends PageSchema | undefined = undefined, const S extends PageSchema | undefined = undefined, C = unknown, const T extends WrittenOptions = {}>(definition: T & AnyPageDefinition<P, S, D, C> & ExactLayoutProps<T>) => DefinedPage<P, S, D, C, T>

Type parameters #

D

Exports de la página, como los ve el navegador.

Example #

ts
import type { PageBodyDefinePage } from "@meekojs/meeko/framework";

declare const define: PageBodyDefinePage<{ readonly title: string }>;
export const route = define({ head: ({ data }) => ({ title: data.title }) });

See also #

Was this page helpful?

Add a comment

It is sent when you choose “Yes” or “No”. Only the page, your answer and the comment are stored: no cookies and no personal data.

0 of 2000 characters

Edit on GitHub: packages/meeko/src/app/definitions/define-page.ts