mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-24 11:29:30 +08:00
lodash: signatures of the method _.unescape have been changed
This commit is contained in:
+14
-2
@@ -4963,8 +4963,20 @@ module TestTrunc {
|
||||
}
|
||||
|
||||
// _.unescape
|
||||
result = <string>_.unescape('fred, barney, & pebbles');
|
||||
result = <string>_('fred, barney, & pebbles').unescape();
|
||||
module TestUnescape {
|
||||
{
|
||||
let result: string;
|
||||
|
||||
result = _.unescape('fred, barney, & pebbles');
|
||||
result = _('fred, barney, & pebbles').unescape();
|
||||
}
|
||||
|
||||
{
|
||||
let result: _.LoDashExplicitWrapper<string>;
|
||||
|
||||
result = _('fred, barney, & pebbles').chain().unescape();
|
||||
}
|
||||
}
|
||||
|
||||
// _.words
|
||||
module TestWords {
|
||||
|
||||
Vendored
+8
@@ -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<T> {
|
||||
/**
|
||||
* @see _.unescape
|
||||
*/
|
||||
unescape(): LoDashExplicitWrapper<string>;
|
||||
}
|
||||
|
||||
//_.words
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user