Merge pull request #6527 from chrootsu/lodash-kebabCase

lodash: signatures of the method _.kebabCase changed
This commit is contained in:
Masahiro Wakame
2015-11-02 23:04:14 +09:00
2 changed files with 22 additions and 2 deletions
+14 -2
View File
@@ -3978,8 +3978,20 @@ module TestEscapeRegExp {
}
// _.kebabCase
result = <string>_.kebabCase('Foo Bar');
result = <string>_('Foo Bar').kebabCase();
module TestKebabCase {
{
let result: string;
result = _.kebabCase('Foo Bar');
result = _('Foo Bar').kebabCase();
}
{
let result: _.LoDashExplicitWrapper<string>;
result = _('Foo Bar').chain().kebabCase();
}
}
// _.pad
module TestPad {
+8
View File
@@ -9309,6 +9309,7 @@ declare module _ {
interface LoDashStatic {
/**
* Converts string to kebab case.
*
* @param string The string to convert.
* @return Returns the kebab cased string.
*/
@@ -9322,6 +9323,13 @@ declare module _ {
kebabCase(): string;
}
interface LoDashExplicitWrapper<T> {
/**
* @see _.kebabCase
*/
kebabCase(): LoDashExplicitWrapper<string>;
}
//_.pad
interface LoDashStatic {
/**