From 2e8850e4d90f4a41a0901cbded737f865a0867f5 Mon Sep 17 00:00:00 2001 From: Ilya Mochalov Date: Wed, 26 Aug 2015 06:00:31 +0500 Subject: [PATCH] lodash: changed _.capitalize() method --- lodash/lodash-tests.ts | 2 ++ lodash/lodash.d.ts | 10 +++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index bb7a66560..3ec1bb1a3 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -1755,7 +1755,9 @@ result = _.uniqueId(); result = _.camelCase('Foo Bar'); result = _('Foo Bar').camelCase(); +// _.capitalize result = _.capitalize('fred'); +result = _('fred').capitalize(); // _.deburr result = _.deburr('déjà vu'); diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index 43ba61f3b..e87b3eadf 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -7583,8 +7583,16 @@ declare module _ { camelCase(): string; } + //_.capitalize interface LoDashStatic { - capitalize(str?: string): string; + capitalize(string?: string): string; + } + + interface LoDashWrapper { + /** + * @see _.capitalize + */ + capitalize(): string; } //_.deburr