mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-24 11:29:30 +08:00
Merge pull request #6527 from chrootsu/lodash-kebabCase
lodash: signatures of the method _.kebabCase changed
This commit is contained in:
+14
-2
@@ -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 {
|
||||
|
||||
Vendored
+8
@@ -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 {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user