Merge pull request #8872 from OleksandrNechai/patch-1

Add overload for replaceWith accepting function
This commit is contained in:
Horiuchi_H
2016-04-07 17:53:13 +09:00
+1
View File
@@ -161,6 +161,7 @@ interface Cheerio {
replaceWith(content: CheerioElement): Cheerio;
replaceWith(content: CheerioElement[]): Cheerio;
replaceWith(content: Cheerio): Cheerio;
replaceWith(content: () => Cheerio): Cheerio;
empty(): Cheerio;