mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-24 11:29:30 +08:00
lodash: signatures of the method _.capitalize changed
This commit is contained in:
+14
-2
@@ -3537,8 +3537,20 @@ result = <string>_.camelCase('Foo Bar');
|
||||
result = <string>_('Foo Bar').camelCase();
|
||||
|
||||
// _.capitalize
|
||||
result = <string>_.capitalize('fred');
|
||||
result = <string>_('fred').capitalize();
|
||||
module TestCapitalize {
|
||||
{
|
||||
let result: string;
|
||||
|
||||
result = _.capitalize('fred');
|
||||
result = _('fred').capitalize();
|
||||
}
|
||||
|
||||
{
|
||||
let result: _.LoDashExplicitWrapper<string>;
|
||||
|
||||
result = _('fred').chain().capitalize();
|
||||
}
|
||||
}
|
||||
|
||||
// _.deburr
|
||||
result = <string>_.deburr('déjà vu');
|
||||
|
||||
Vendored
+7
@@ -8989,6 +8989,13 @@ declare module _ {
|
||||
capitalize(): string;
|
||||
}
|
||||
|
||||
interface LoDashExplicitWrapper<T> {
|
||||
/**
|
||||
* @see _.capitalize
|
||||
*/
|
||||
capitalize(): LoDashExplicitWrapper<string>;
|
||||
}
|
||||
|
||||
//_.deburr
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user