From c2c6c7bd93ac3a07c27bf9eacb8eb5f3515ab80c Mon Sep 17 00:00:00 2001 From: Oleksandr Nechai Date: Wed, 6 Apr 2016 20:19:17 +0300 Subject: [PATCH] Add overload for replaceWith accepting function http://api.jquery.com/replacewith/#replaceWith-function --- cheerio/cheerio.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/cheerio/cheerio.d.ts b/cheerio/cheerio.d.ts index 0f3e4282e..af3e61dd4 100644 --- a/cheerio/cheerio.d.ts +++ b/cheerio/cheerio.d.ts @@ -160,6 +160,7 @@ interface Cheerio { replaceWith(content: CheerioElement): Cheerio; replaceWith(content: CheerioElement[]): Cheerio; replaceWith(content: Cheerio): Cheerio; + replaceWith(content: () => Cheerio): Cheerio; empty(): Cheerio;