mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-09 11:40:16 +08:00
lodash: signatures of the method _.capitalize changed
This commit is contained in:
1 parent
44cbde48ee
commit
cbff049a05
2 files changed
+21
-2
No files matched your search
+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