Installation
npm install --save @types/express-sitemap-xml
Summary
This package contains type definitions for express-sitemap-xml (https://github.com/feross/express-sitemap-xml).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express-sitemap-xml.
import express = require("express");
declare function expressSitemapXml(
getUrls: () => expressSitemapXml.SitemapLeaf[] | Promise<expressSitemapXml.SitemapLeaf[]>,
base: string,
): express.RequestHandler;
declare namespace expressSitemapXml {
interface LeafObject {
changeFreq?: string | undefined;
lastMod?: string | Date | true | undefined;
url: string;
}
type SitemapLeaf = string | LeafObject;
interface Sitemap {
[leaf: string]: string;
}
function buildSitemaps(urls: SitemapLeaf[], base: string): Promise<Sitemap>;
}
export = expressSitemapXml;
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: @types/express
Credits
These definitions were written by Florian Imdahl, and Piotr Błażejewicz.