mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-11 22:37:31 +08:00
lodash: changed _.kebabCase() method
This commit is contained in:
@@ -1742,7 +1742,9 @@ result = <string>_('fred, barney, & pebbles').escape();
|
||||
result = <string>_.escapeRegExp('[lodash](https://lodash.com/)');
|
||||
result = <string>_('[lodash](https://lodash.com/)').escapeRegExp();
|
||||
|
||||
// _.kebabCase
|
||||
result = <string>_.kebabCase('Foo Bar');
|
||||
result = <string>_('Foo Bar').kebabCase();
|
||||
|
||||
// _.pad
|
||||
result = <string>_.pad('abd');
|
||||
|
||||
15
lodash/lodash.d.ts
vendored
15
lodash/lodash.d.ts
vendored
@@ -7587,8 +7587,21 @@ declare module _ {
|
||||
escapeRegExp(): string;
|
||||
}
|
||||
|
||||
//_.kebabCase
|
||||
interface LoDashStatic {
|
||||
kebabCase(str?: string): string;
|
||||
/**
|
||||
* Converts string to kebab case.
|
||||
* @param string The string to convert.
|
||||
* @return Returns the kebab cased string.
|
||||
*/
|
||||
kebabCase(string?: string): string;
|
||||
}
|
||||
|
||||
interface LoDashWrapper<T> {
|
||||
/**
|
||||
* @see _.kebabCase
|
||||
*/
|
||||
kebabCase(): string;
|
||||
}
|
||||
|
||||
interface LoDashStatic {
|
||||
|
||||
Reference in New Issue
Block a user