Merge pull request #17748 from ikatyang/cheerio-patch

fix(cheerio): CheerioAPI should extend CheerioStatic
This commit is contained in:
Ron Buckton
2017-07-04 16:14:11 -07:00
committed by GitHub
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -306,3 +306,5 @@ $.parseHTML(html, null, true);
* Not in doc
*/
$el.toArray();
cheerio.html($el);
+1 -1
View File
@@ -263,7 +263,7 @@ interface CheerioElement {
nodeValue: string;
}
interface CheerioAPI extends CheerioSelector {
interface CheerioAPI extends CheerioSelector, CheerioStatic {
load(html: string, options?: CheerioOptionsInterface): CheerioStatic;
load(element: CheerioElement, options?: CheerioOptionsInterface): CheerioStatic;
}