Merge pull request #2588 from wmaurer/master

added static html() methods to cheerio
This commit is contained in:
Masahiro Wakame
2014-08-01 11:17:54 +09:00
+6 -2
View File
@@ -1,7 +1,6 @@
// Type definitions for Cheerio v0.17.0
// Project: https://github.com/cheeriojs/cheerio
// Definitions by: Bret Little <https://github.com/blittle>
// Definitions by: VILIC VANE <http://vilic.info>
// Definitions by: Bret Little <https://github.com/blittle>, VILIC VANE <http://vilic.info>, Wayne Maurer <https://github.com/wmaurer>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
interface Cheerio {
@@ -190,6 +189,11 @@ interface CheerioStatic {
root(): Cheerio;
contains(container: CheerioElement, contained: CheerioElement): boolean;
parseHTML(data: string, context?: Document, keepScripts?: boolean): Document[];
html(options?: CheerioOptionsInterface): string;
html(selector: string, options?: CheerioOptionsInterface): string;
html(element: Cheerio, options?: CheerioOptionsInterface): string;
html(element: CheerioElement, options?: CheerioOptionsInterface): string;
}
interface CheerioElement {