svelte-sitemap
Version:
Small helper which scans your Svelte routes folder and generates static sitemap.xml
25 lines (24 loc) • 640 B
TypeScript
export interface Arguments {
domain: string;
options?: Options;
}
export interface Options {
debug?: boolean;
changeFreq?: ChangeFreq;
resetTime?: boolean;
outDir?: string;
attribution?: boolean;
ignore?: string | string[];
trailingSlashes?: boolean;
additional?: string[];
}
export interface PagesJson {
page: string;
changeFreq?: ChangeFreq;
lastMod?: string;
}
export declare const changeFreq: readonly ["always", "hourly", "daily", "weekly", "monthly", "yearly", "never"];
/**
* Specs: https://www.sitemaps.org/protocol.html
*/
export type ChangeFreq = (typeof changeFreq)[number];