mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-29 11:12:23 +08:00
Merge pull request #5502 from chrootsu/lodash-camelCase
lodash: changed _.camelCase() method
This commit is contained in:
@@ -1737,7 +1737,10 @@ result = <string>_.uniqueId();
|
||||
* String
|
||||
*********/
|
||||
|
||||
// _.camelCase
|
||||
result = <string>_.camelCase('Foo Bar');
|
||||
result = <string>_('Foo Bar').camelCase();
|
||||
|
||||
result = <string>_.capitalize('fred');
|
||||
|
||||
// _.deburr
|
||||
|
||||
Vendored
+17
-1
@@ -7545,8 +7545,24 @@ declare module _ {
|
||||
* String *
|
||||
**********/
|
||||
|
||||
//_.camelCase
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
* Converts string to camel case.
|
||||
* @param string The string to convert.
|
||||
* @return Returns the camel cased string.
|
||||
*/
|
||||
camelCase(string?: string): string;
|
||||
}
|
||||
|
||||
interface LoDashWrapper<T> {
|
||||
/**
|
||||
* @see _.camelCase
|
||||
*/
|
||||
camelCase(): string;
|
||||
}
|
||||
|
||||
interface LoDashStatic {
|
||||
camelCase(str?: string): string;
|
||||
capitalize(str?: string): string;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user