lodash: signatures of the method _.deburr changed

This commit is contained in:
Ilya Mochalov
2015-10-28 22:24:38 +05:00
parent 62eedc3121
commit 1c17156d07
2 changed files with 22 additions and 2 deletions
+14 -2
View File
@@ -3776,8 +3776,20 @@ module TestCapitalize {
}
// _.deburr
result = <string>_.deburr('déjà vu');
result = <string>_('déjà vu').deburr();
module TestDeburr {
{
let result: string;
result = _.deburr('déjà vu');
result = _('déjà vu').deburr();
}
{
let result: _.LoDashExplicitWrapper<string>;
result = _('déjà vu').chain().deburr();
}
}
// _.endsWith
module TestEndsWith {
+8
View File
@@ -9180,6 +9180,7 @@ declare module _ {
/**
* Deburrs string by converting latin-1 supplementary letters to basic latin letters and removing combining
* diacritical marks.
*
* @param string The string to deburr.
* @return Returns the deburred string.
*/
@@ -9193,6 +9194,13 @@ declare module _ {
deburr(): string;
}
interface LoDashExplicitWrapper<T> {
/**
* @see _.deburr
*/
deburr(): LoDashExplicitWrapper<string>;
}
//_.endsWith
interface LoDashStatic {
/**