lodash: signatures of the method _.capitalize changed

This commit is contained in:
Ilya Mochalov
2015-10-22 21:36:23 +05:00
parent 44cbde48ee
commit cbff049a05
2 changed files with 21 additions and 2 deletions
+14 -2
View File
@@ -3537,8 +3537,20 @@ result = <string>_.camelCase('Foo Bar');
result = <string>_('Foo Bar').camelCase();
// _.capitalize
result = <string>_.capitalize('fred');
result = <string>_('fred').capitalize();
module TestCapitalize {
{
let result: string;
result = _.capitalize('fred');
result = _('fred').capitalize();
}
{
let result: _.LoDashExplicitWrapper<string>;
result = _('fred').chain().capitalize();
}
}
// _.deburr
result = <string>_.deburr('déjà vu');
+7
View File
@@ -8989,6 +8989,13 @@ declare module _ {
capitalize(): string;
}
interface LoDashExplicitWrapper<T> {
/**
* @see _.capitalize
*/
capitalize(): LoDashExplicitWrapper<string>;
}
//_.deburr
interface LoDashStatic {
/**