lodash: signatures of the method _.unescape have been changed

This commit is contained in:
Ilya Mochalov
2015-11-05 08:48:50 +05:00
parent 001ca36ba5
commit 52fa34a174
2 changed files with 22 additions and 2 deletions
+14 -2
View File
@@ -4963,8 +4963,20 @@ module TestTrunc {
}
// _.unescape
result = <string>_.unescape('fred, barney, &amp; pebbles');
result = <string>_('fred, barney, &amp; pebbles').unescape();
module TestUnescape {
{
let result: string;
result = _.unescape('fred, barney, &amp; pebbles');
result = _('fred, barney, &amp; pebbles').unescape();
}
{
let result: _.LoDashExplicitWrapper<string>;
result = _('fred, barney, &amp; pebbles').chain().unescape();
}
}
// _.words
module TestWords {
+8
View File
@@ -10564,6 +10564,7 @@ declare module _ {
/**
* The inverse of _.escape; this method converts the HTML entities &amp;, &lt;, &gt;, &quot;, &#39;, and &#96;
* 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<T> {
/**
* @see _.unescape
*/
unescape(): LoDashExplicitWrapper<string>;
}
//_.words
interface LoDashStatic {
/**