mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Merge pull request #17748 from ikatyang/cheerio-patch
fix(cheerio): CheerioAPI should extend CheerioStatic
This commit is contained in:
@@ -306,3 +306,5 @@ $.parseHTML(html, null, true);
|
||||
* Not in doc
|
||||
*/
|
||||
$el.toArray();
|
||||
|
||||
cheerio.html($el);
|
||||
|
||||
Vendored
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user