mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 15:57:13 +00:00
Merge pull request #26647 from chennakrishna8/master
cheerio: uncommenting wrap method definition since code is already available
This commit is contained in:
@@ -265,8 +265,7 @@ $el.text();
|
||||
$el.text('text');
|
||||
|
||||
// .wrap( content )
|
||||
// See https://github.com/cheeriojs/cheerio/issues/731
|
||||
// $el.wrap($('<div class="red-fruit"></div>')).html();
|
||||
$el.wrap($('<div class="red-fruit"></div>')).html();
|
||||
|
||||
// .css
|
||||
$el.css('width');
|
||||
|
||||
Vendored
+3
-4
@@ -1,6 +1,6 @@
|
||||
// Type definitions for Cheerio v0.22.0
|
||||
// Project: https://github.com/cheeriojs/cheerio
|
||||
// Definitions by: Bret Little <https://github.com/blittle>, VILIC VANE <http://vilic.info>, Wayne Maurer <https://github.com/wmaurer>, Umar Nizamani <https://github.com/umarniz>, LiJinyao <https://github.com/LiJinyao>
|
||||
// Definitions by: Bret Little <https://github.com/blittle>, VILIC VANE <http://vilic.info>, Wayne Maurer <https://github.com/wmaurer>, Umar Nizamani <https://github.com/umarniz>, LiJinyao <https://github.com/LiJinyao>, Chennakrishna <https://github.com/chennakrishna8>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
interface Cheerio {
|
||||
@@ -178,10 +178,9 @@ interface Cheerio {
|
||||
text(): string;
|
||||
text(text: string): Cheerio;
|
||||
|
||||
// See https://github.com/cheeriojs/cheerio/issues/731
|
||||
/*wrap(content: string): Cheerio;
|
||||
wrap(content: string): Cheerio;
|
||||
wrap(content: Document): Cheerio;
|
||||
wrap(content: Cheerio): Cheerio;*/
|
||||
wrap(content: Cheerio): Cheerio;
|
||||
|
||||
css(propertyName: string): string;
|
||||
css(propertyNames: string[]): string[];
|
||||
|
||||
Reference in New Issue
Block a user