Merge pull request #6451 from chrootsu/lodash-camelCase

lodash: signatures of the method _.camelCase changed
This commit is contained in:
Masahiro Wakame
2015-10-27 08:17:02 +09:00
2 changed files with 22 additions and 2 deletions
+14 -2
View File
@@ -3732,8 +3732,20 @@ class Mage {
*********/
// _.camelCase
result = <string>_.camelCase('Foo Bar');
result = <string>_('Foo Bar').camelCase();
module TestCamelCase {
{
let result: string;
result = _.camelCase('Foo Bar');
result = _('Foo Bar').camelCase();
}
{
let result: _.LoDashExplicitWrapper<string>;
result = _('Foo Bar').chain().camelCase();
}
}
// _.capitalize
module TestCapitalize {
+8
View File
@@ -9120,6 +9120,7 @@ declare module _ {
interface LoDashStatic {
/**
* Converts string to camel case.
*
* @param string The string to convert.
* @return Returns the camel cased string.
*/
@@ -9133,6 +9134,13 @@ declare module _ {
camelCase(): string;
}
interface LoDashExplicitWrapper<T> {
/**
* @see _.camelCase
*/
camelCase(): LoDashExplicitWrapper<string>;
}
//_.capitalize
interface LoDashStatic {
capitalize(string?: string): string;