lodash: signatures of the method _.kebabCase changed

This commit is contained in:
Ilya Mochalov
2015-10-30 00:00:23 +05:00
parent 62eedc3121
commit 2711fd3bbd
2 changed files with 22 additions and 2 deletions
+14 -2
View File
@@ -3820,8 +3820,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
@@ -9277,6 +9277,7 @@ declare module _ {
interface LoDashStatic {
/**
* Converts string to kebab case.
*
* @param string The string to convert.
* @return Returns the kebab cased string.
*/
@@ -9290,6 +9291,13 @@ declare module _ {
kebabCase(): string;
}
interface LoDashExplicitWrapper<T> {
/**
* @see _.kebabCase
*/
kebabCase(): LoDashExplicitWrapper<string>;
}
//_.pad
interface LoDashStatic {
/**