Skip to content

Commit ec9eb4b

Browse files
committed
Merge pull request DefinitelyTyped#8872 from OleksandrNechai/patch-1
Add overload for replaceWith accepting function
2 parents f0b2681 + c2c6c7b commit ec9eb4b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cheerio/cheerio.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ interface Cheerio {
161161
replaceWith(content: CheerioElement): Cheerio;
162162
replaceWith(content: CheerioElement[]): Cheerio;
163163
replaceWith(content: Cheerio): Cheerio;
164+
replaceWith(content: () => Cheerio): Cheerio;
164165

165166
empty(): Cheerio;
166167

0 commit comments

Comments
 (0)