1.0.5 • Published 6 months ago

@types/sitemap2 v1.0.5

Weekly downloads
19
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/sitemap2

Summary

This package contains type definitions for sitemap2 (https://github.com/vlkosinov/sitemap2).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sitemap2.

index.d.ts

// Type definitions for sitemap2 1.0
// Project: https://github.com/vlkosinov/sitemap2
// Definitions by: Yuichi Shundo <https://github.com/shundy>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

declare var sitemap2: Sitemap;

export = sitemap2;

interface Sitemap {
    new (conf?: SitemapConfig): Sitemap;

    addUrl(urlData: UrlData | UrlData[] | string | string[]): this;
    addSitemap(sm: Sitemap): this;
    toXML(): SitemapXml[];

    hostName: string;
    fileName: string;
    limit: number;
    urls: string[];
    childrens: Sitemap[];
}

interface SitemapConfig {
    hostName?: string | undefined;
    fileName?: string | undefined;
    limit?: number | undefined;
    cacheTime?: number | undefined;
    xslUrl?: string | undefined;
    urls?: string[] | undefined;
    childrens?: Sitemap[] | undefined;
}

interface UrlData {
    url: string;
    chengefreq?: string | undefined;
    priority?: number | string | undefined;
    lastmod?: Date | undefined;
    lastmodWithTime?: boolean | undefined;
    lastmodInISO?: boolean | undefined;
    video?: {
        title: string;
        description: string;
        thumbnail_loc: string;
        content_loc: string;
    } | undefined;
}

interface SitemapXml {
    fileName: string;
    xml: string;
}

Additional Details

  • Last updated: Tue, 06 Jul 2021 16:34:54 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Yuichi Shundo.

1.0.5

6 months ago

1.0.4

7 months ago

1.0.3

8 months ago

1.0.2

3 years ago

1.0.1

7 years ago

1.0.0

7 years ago