diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index e2d16fcc14..6b29476971 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -3732,8 +3732,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 54304cb20c..0d787a05c2 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -9120,6 +9120,7 @@ declare module _ { interface LoDashStatic { /** * Converts string to camel case. + * * @param string The string to convert. * @return Returns the camel cased string. */ @@ -9133,6 +9134,13 @@ declare module _ { camelCase(): string; } + interface LoDashExplicitWrapper { + /** + * @see _.camelCase + */ + camelCase(): LoDashExplicitWrapper; + } + //_.capitalize interface LoDashStatic { capitalize(string?: string): string;