From 7520e1ead47326dd179b384ae09dc758d0244e0d Mon Sep 17 00:00:00 2001 From: Chennakrishna Sagili Date: Mon, 18 Jun 2018 16:48:57 -0600 Subject: [PATCH] uncommenting wrap definition since code is already availabe --- types/cheerio/cheerio-tests.ts | 3 +-- types/cheerio/index.d.ts | 7 +++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/types/cheerio/cheerio-tests.ts b/types/cheerio/cheerio-tests.ts index d686951213..719c0c70da 100644 --- a/types/cheerio/cheerio-tests.ts +++ b/types/cheerio/cheerio-tests.ts @@ -265,8 +265,7 @@ $el.text(); $el.text('text'); // .wrap( content ) -// See https://github.com/cheeriojs/cheerio/issues/731 -// $el.wrap($('
')).html(); +$el.wrap($('
')).html(); // .css $el.css('width'); diff --git a/types/cheerio/index.d.ts b/types/cheerio/index.d.ts index 42bcae6eff..d264f4b8da 100644 --- a/types/cheerio/index.d.ts +++ b/types/cheerio/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Cheerio v0.22.0 // Project: https://github.com/cheeriojs/cheerio -// Definitions by: Bret Little , VILIC VANE , Wayne Maurer , Umar Nizamani , LiJinyao +// Definitions by: Bret Little , VILIC VANE , Wayne Maurer , Umar Nizamani , LiJinyao , Chennakrishna // 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[];