Add overload for replaceWith accepting function

http://api.jquery.com/replacewith/#replaceWith-function
This commit is contained in:
Oleksandr Nechai
2016-04-06 20:19:17 +03:00
parent 247e8d4840
commit c2c6c7bd93
+1
View File
@@ -160,6 +160,7 @@ interface Cheerio {
replaceWith(content: CheerioElement): Cheerio;
replaceWith(content: CheerioElement[]): Cheerio;
replaceWith(content: Cheerio): Cheerio;
replaceWith(content: () => Cheerio): Cheerio;
empty(): Cheerio;