UNPKG

@getcronit/pylon

Version:

![Pylon cover](https://github.com/user-attachments/assets/c28e49b2-5672-4849-826e-8b2eab0360cc)

31 lines (30 loc) 897 B
import { Variables, type Plugin } from '../../../index'; export interface PageData { } export type PageProps = { context: Variables['pagesContext']; data: PageData & { $refetch: () => Promise<void>; }; params: Record<string, string | string[] | undefined>; searchParams: Record<string, string>; path: string; }; export type LayoutProps = PageProps & { children: React.ReactNode; }; export declare namespace MetadataRoute { type SitemapItem = { url: string; lastmod?: string | Date; changefreq?: 'always' | 'hourly' | 'daily' | 'weekly' | 'monthly' | 'yearly' | 'never'; priority?: number; }; type Sitemap = SitemapItem[]; type SitemapIndexItem = { url: string; lastmod?: string | Date; }; type SitemapIndex = SitemapIndexItem[]; } export declare const setup: NonNullable<Plugin['setup']>;