UNPKG

@api.global/typedserver

Version:

A TypeScript-based project for easy serving of static files with support for live reloading, compression, and typed requests.

28 lines (27 loc) 793 B
import { Server } from './classes.server.js'; import { Handler } from './classes.handler.js'; import * as plugins from '../plugins.js'; import { type IUrlInfo } from '@push.rocks/smartsitemap'; export declare class Sitemap { smartexpressRef: Server; smartSitemap: plugins.smartsitemap.SmartSitemap; urls: plugins.smartsitemap.IUrlInfo[]; /** * handles the normal sitemap request */ sitemapHandler: Handler; /** * handles the sitemap-news request */ sitemapNewsHandler: Handler; constructor(smartexpressRefArg: Server); /** * replaces the current urlsArray * @param urlsArg */ replaceUrls(urlsArg: IUrlInfo[]): void; /** * adds urls to the current set of urls */ addUrls(urlsArg: IUrlInfo[]): void; }