lodash: signatures of the method _.startCase changed

This commit is contained in:
Ilya Mochalov
2015-10-24 23:57:27 +05:00
parent 3191f6e008
commit 20e2eec666
2 changed files with 22 additions and 2 deletions
+14 -2
View File
@@ -3601,8 +3601,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');
+8
View File
@@ -9198,6 +9198,7 @@ declare module _ {
interface LoDashStatic {
/**
* Converts string to start case.
*
* @param string The string to convert.
* @return Returns the start cased string.
*/
@@ -9211,6 +9212,13 @@ declare module _ {
startCase(): string;
}
interface LoDashExplicitWrapper<T> {
/**
* @see _.startCase
*/
startCase(): LoDashExplicitWrapper<string>;
}
//_.startsWith
interface LoDashStatic {
/**