Saltar al contenido
CtrlK

ArdoPage

En esta página
Esta referencia de la API se genera a partir de los comentarios de TypeScript en inglés. Los nombres, las firmas y los ejemplos corresponden al paquete publicado.

What Ardo knows about the page it renders.

import type { ArdoPage } from "ardo/runtime"

type ArdoPage = {
    /** Public base path of the site, with leading and trailing slash. */
    base: string;
    /** Page component, or the error component when `error` is set. */
    component?: ComponentType;
    /** Error that replaced the page content. */
    error?: ArdoPageError;
    /** The route module's `handle` export. */
    handle?: unknown;
    /** Path of the page without the base path, starting with a slash. */
    path: string;
    /** Source identity and modification time supplied by the route table. */
    source?: {
        relativePath: string;
        lastUpdated: number;
    };
};

Properties

NameTypeRequiredDescription
basestringYesPublic base path of the site, with leading and trailing slash.
componentComponentTypeNoPage component, or the error component when error is set.
errorArdoPageErrorNoError that replaced the page content.
handleunknownNoThe route module's handle export.
pathstringYesPath of the page without the base path, starting with a slash.
source{ relativePath: string; lastUpdated: number }NoSource identity and modification time supplied by the route table.