mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
Merge pull request #6451 from chrootsu/lodash-camelCase
lodash: signatures of the method _.camelCase changed
This commit is contained in:
+14
-2
@@ -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 {
|
||||
|
||||
Vendored
+8
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user