@getcronit/pylon
Version:

31 lines (30 loc) • 897 B
TypeScript
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']>;