Merge pull request #6429 from chrootsu/lodash-startCase

lodash: signatures of the method _.startCase changed
This commit is contained in:
Masahiro Wakame
2015-10-27 00:59:16 +09:00
2 changed files with 22 additions and 2 deletions
+14 -2
View File
@@ -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');
+8
View File
@@ -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 {
/**