fix(cheerio): CheerioAPI should extend CheerioStatic

This commit is contained in:
Ika
2017-07-04 23:55:07 +08:00
committed by GitHub
parent 7cebbb3e51
commit e23ee8a8dd

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;
}