mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-10 11:40:16 +08:00
lodash: changed _.startCase() method
This commit is contained in:
@@ -1780,7 +1780,9 @@ result = <number>_('08').parseInt(10);
|
||||
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
@@ -7693,8 +7693,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