mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-29 11:12:23 +08:00
lodash: changed _.capitalize() method
This commit is contained in:
@@ -1755,7 +1755,9 @@ result = <string>_.uniqueId();
|
||||
result = <string>_.camelCase('Foo Bar');
|
||||
result = <string>_('Foo Bar').camelCase();
|
||||
|
||||
// _.capitalize
|
||||
result = <string>_.capitalize('fred');
|
||||
result = <string>_('fred').capitalize();
|
||||
|
||||
// _.deburr
|
||||
result = <string>_.deburr('déjà vu');
|
||||
|
||||
Vendored
+9
-1
@@ -7583,8 +7583,16 @@ declare module _ {
|
||||
camelCase(): string;
|
||||
}
|
||||
|
||||
//_.capitalize
|
||||
interface LoDashStatic {
|
||||
capitalize(str?: string): string;
|
||||
capitalize(string?: string): string;
|
||||
}
|
||||
|
||||
interface LoDashWrapper<T> {
|
||||
/**
|
||||
* @see _.capitalize
|
||||
*/
|
||||
capitalize(): string;
|
||||
}
|
||||
|
||||
//_.deburr
|
||||
|
||||
Reference in New Issue
Block a user