mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-13 13:30:28 +00:00
Merge pull request #6429 from chrootsu/lodash-startCase
lodash: signatures of the method _.startCase changed
This commit is contained in:
+14
-2
@@ -3862,8 +3862,20 @@ result = <string>_.snakeCase('Foo Bar');
|
||||
result = <string>_('Foo Bar').snakeCase();
|
||||
|
||||
// _.startCase
|
||||
result = <string>_.startCase('--foo-bar');
|
||||
result = <string>_('--foo-bar').startCase();
|
||||
module TestStartCase {
|
||||
{
|
||||
let result: string;
|
||||
|
||||
result = _.startCase('--foo-bar');
|
||||
result = _('--foo-bar').startCase();
|
||||
}
|
||||
|
||||
{
|
||||
let result: _.LoDashExplicitWrapper<string>;
|
||||
|
||||
result = _('--foo-bar').chain().startCase();
|
||||
}
|
||||
}
|
||||
|
||||
// _.startsWith
|
||||
result = <boolean>_.startsWith('abc', 'a');
|
||||
|
||||
Vendored
+8
@@ -9327,6 +9327,7 @@ declare module _ {
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
* Converts string to start case.
|
||||
*
|
||||
* @param string The string to convert.
|
||||
* @return Returns the start cased string.
|
||||
*/
|
||||
@@ -9340,6 +9341,13 @@ declare module _ {
|
||||
startCase(): string;
|
||||
}
|
||||
|
||||
interface LoDashExplicitWrapper<T> {
|
||||
/**
|
||||
* @see _.startCase
|
||||
*/
|
||||
startCase(): LoDashExplicitWrapper<string>;
|
||||
}
|
||||
|
||||
//_.startsWith
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user