mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 15:00:26 +00:00
Merge pull request #5501 from chrootsu/lodash-startCase
lodash: changed _.startCase() method
This commit is contained in:
@@ -1794,7 +1794,9 @@ result = <string>_('*').repeat(3);
|
||||
result = <string>_.snakeCase('Foo Bar');
|
||||
result = <string>_('Foo Bar').snakeCase();
|
||||
|
||||
// _.startCase
|
||||
result = <string>_.startCase('--foo-bar');
|
||||
result = <string>_('--foo-bar').startCase();
|
||||
|
||||
// _.startsWith
|
||||
result = <boolean>_.startsWith('abc', 'a');
|
||||
|
||||
Vendored
+14
-1
@@ -7727,8 +7727,21 @@ declare module _ {
|
||||
snakeCase(): string;
|
||||
}
|
||||
|
||||
//_.startCase
|
||||
interface LoDashStatic {
|
||||
startCase(str?: string): string;
|
||||
/**
|
||||
* Converts string to start case.
|
||||
* @param string The string to convert.
|
||||
* @return Returns the start cased string.
|
||||
*/
|
||||
startCase(string?: string): string;
|
||||
}
|
||||
|
||||
interface LoDashWrapper<T> {
|
||||
/**
|
||||
* @see _.startCase
|
||||
*/
|
||||
startCase(): string;
|
||||
}
|
||||
|
||||
//_.startsWith
|
||||
|
||||
Reference in New Issue
Block a user