lodash: signatures of the method _.snakeCase have been changed

This commit is contained in:
Ilya Mochalov
2015-11-02 04:41:13 +05:00
parent eb59a40d3c
commit e95f47e0bb
2 changed files with 22 additions and 2 deletions
+14 -2
View File
@@ -3904,8 +3904,20 @@ module TestRepeat {
}
// _.snakeCase
result = <string>_.snakeCase('Foo Bar');
result = <string>_('Foo Bar').snakeCase();
module TestSnakeCase {
{
let result: string;
result = _.snakeCase('Foo Bar');
result = _('Foo Bar').snakeCase();
}
{
let result: _.LoDashExplicitWrapper<string>;
result = _('Foo Bar').chain().snakeCase();
}
}
// _.startCase
module TestStartCase {
+8
View File
@@ -9440,6 +9440,7 @@ declare module _ {
interface LoDashStatic {
/**
* Converts string to snake case.
*
* @param string The string to convert.
* @return Returns the snake cased string.
*/
@@ -9453,6 +9454,13 @@ declare module _ {
snakeCase(): string;
}
interface LoDashExplicitWrapper<T> {
/**
* @see _.snakeCase
*/
snakeCase(): LoDashExplicitWrapper<string>;
}
//_.startCase
interface LoDashStatic {
/**