mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
lodash: signatures of the method _.kebabCase changed
This commit is contained in:
+14
-2
@@ -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 {
|
||||
|
||||
Vendored
+8
@@ -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 {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user