Merge pull request #6392 from chrootsu/lodash-capitalize

lodash: signatures of the method _.capitalize changed
This commit is contained in:
Masahiro Wakame
2015-10-27 00:17:01 +09:00
2 changed files with 21 additions and 2 deletions
+14 -2
View File
@@ -3722,8 +3722,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
@@ -9038,6 +9038,13 @@ declare module _ {
capitalize(): string;
}
interface LoDashExplicitWrapper<T> {
/**
* @see _.capitalize
*/
capitalize(): LoDashExplicitWrapper<string>;
}
//_.deburr
interface LoDashStatic {
/**