mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
Merge pull request #6569 from chrootsu/lodash-snakeCase
lodash: signatures of the method _.snakeCase have been changed
This commit is contained in:
+14
-2
@@ -4482,8 +4482,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 {
|
||||
|
||||
Vendored
+8
@@ -9962,6 +9962,7 @@ declare module _ {
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
* Converts string to snake case.
|
||||
*
|
||||
* @param string The string to convert.
|
||||
* @return Returns the snake cased string.
|
||||
*/
|
||||
@@ -9975,6 +9976,13 @@ declare module _ {
|
||||
snakeCase(): string;
|
||||
}
|
||||
|
||||
interface LoDashExplicitWrapper<T> {
|
||||
/**
|
||||
* @see _.snakeCase
|
||||
*/
|
||||
snakeCase(): LoDashExplicitWrapper<string>;
|
||||
}
|
||||
|
||||
//_.startCase
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user