lodash: signatures of the method _.camelCase changed

This commit is contained in:
Ilya Mochalov
2015-10-26 23:10:30 +05:00
parent b104f61d0e
commit 0bfa6372dc
2 changed files with 22 additions and 2 deletions
+14 -2
View File
@@ -3711,8 +3711,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
@@ -9098,6 +9098,7 @@ declare module _ {
interface LoDashStatic {
/**
* Converts string to camel case.
*
* @param string The string to convert.
* @return Returns the camel cased string.
*/
@@ -9111,6 +9112,13 @@ declare module _ {
camelCase(): string;
}
interface LoDashExplicitWrapper<T> {
/**
* @see _.camelCase
*/
camelCase(): LoDashExplicitWrapper<string>;
}
//_.capitalize
interface LoDashStatic {
capitalize(string?: string): string;