yoda-seo-tips
Version:
SEO tips from Yoda
16 lines (15 loc) • 473 B
TypeScript
/// <reference types="node" />
/// <reference types="cheerio" />
import { Stream } from 'stream';
export declare type Input = string | Stream;
export declare type Output = string | {
write(msg: string): void;
} | null;
export interface Rule {
($: CheerioStatic, report: (msg: string) => void): void;
}
export declare class HtmlValidator {
private rules;
constructor(rules: Rule[]);
process(input: Input, output: Output): Promise<void>;
}