From 52fa34a17429d6d04916e8fa084aec6a1fa9cd1e Mon Sep 17 00:00:00 2001 From: Ilya Mochalov Date: Thu, 5 Nov 2015 08:48:50 +0500 Subject: [PATCH] lodash: signatures of the method _.unescape have been changed --- lodash/lodash-tests.ts | 16 ++++++++++++++-- lodash/lodash.d.ts | 8 ++++++++ 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index abe109c6e..25d2033c2 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -4963,8 +4963,20 @@ module TestTrunc { } // _.unescape -result = _.unescape('fred, barney, & pebbles'); -result = _('fred, barney, & pebbles').unescape(); +module TestUnescape { + { + let result: string; + + result = _.unescape('fred, barney, & pebbles'); + result = _('fred, barney, & pebbles').unescape(); + } + + { + let result: _.LoDashExplicitWrapper; + + result = _('fred, barney, & pebbles').chain().unescape(); + } +} // _.words module TestWords { diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index 7f20d7aa8..d881d31fa 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -10564,6 +10564,7 @@ declare module _ { /** * The inverse of _.escape; this method converts the HTML entities &, <, >, ", ', and ` * in string to their corresponding characters. + * * @param string The string to unescape. * @return Returns the unescaped string. */ @@ -10577,6 +10578,13 @@ declare module _ { unescape(): string; } + interface LoDashExplicitWrapper { + /** + * @see _.unescape + */ + unescape(): LoDashExplicitWrapper; + } + //_.words interface LoDashStatic { /**