From 0bfa6372dc551a2018a53676a266430f655b008a Mon Sep 17 00:00:00 2001 From: Ilya Mochalov Date: Mon, 26 Oct 2015 23:10:30 +0500 Subject: [PATCH] lodash: signatures of the method _.camelCase changed --- lodash/lodash-tests.ts | 16 ++++++++++++++-- lodash/lodash.d.ts | 8 ++++++++ 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index 8a47a41f12..97c2b3522c 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -3711,8 +3711,20 @@ class Mage { *********/ // _.camelCase -result = _.camelCase('Foo Bar'); -result = _('Foo Bar').camelCase(); +module TestCamelCase { + { + let result: string; + + result = _.camelCase('Foo Bar'); + result = _('Foo Bar').camelCase(); + } + + { + let result: _.LoDashExplicitWrapper; + + result = _('Foo Bar').chain().camelCase(); + } +} // _.capitalize module TestCapitalize { diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index 528356ff24..d0cb3120ef 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -9098,6 +9098,7 @@ declare module _ { interface LoDashStatic { /** * Converts string to camel case. + * * @param string The string to convert. * @return Returns the camel cased string. */ @@ -9111,6 +9112,13 @@ declare module _ { camelCase(): string; } + interface LoDashExplicitWrapper { + /** + * @see _.camelCase + */ + camelCase(): LoDashExplicitWrapper; + } + //_.capitalize interface LoDashStatic { capitalize(string?: string): string;