🎉 initiate project *astro_rewrite*
This commit is contained in:
parent
ffd4d5e86c
commit
2ba37bfbe3
8658 changed files with 2268794 additions and 2538 deletions
25
node_modules/sitemap/dist/lib/sitemap-item-stream.d.ts
generated
vendored
Normal file
25
node_modules/sitemap/dist/lib/sitemap-item-stream.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
/// <reference types="node" />
|
||||
import { Transform, TransformOptions, TransformCallback } from 'stream';
|
||||
import { SitemapItem, ErrorLevel } from './types';
|
||||
export interface StringObj {
|
||||
[index: string]: any;
|
||||
}
|
||||
export interface SitemapItemStreamOptions extends TransformOptions {
|
||||
level?: ErrorLevel;
|
||||
}
|
||||
/**
|
||||
* Takes a stream of SitemapItemOptions and spits out xml for each
|
||||
* @example
|
||||
* // writes <url><loc>https://example.com</loc><url><url><loc>https://example.com/2</loc><url>
|
||||
* const smis = new SitemapItemStream({level: 'warn'})
|
||||
* smis.pipe(writestream)
|
||||
* smis.write({url: 'https://example.com', img: [], video: [], links: []})
|
||||
* smis.write({url: 'https://example.com/2', img: [], video: [], links: []})
|
||||
* smis.end()
|
||||
* @param level - Error level
|
||||
*/
|
||||
export declare class SitemapItemStream extends Transform {
|
||||
level: ErrorLevel;
|
||||
constructor(opts?: SitemapItemStreamOptions);
|
||||
_transform(item: SitemapItem, encoding: string, callback: TransformCallback): void;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue