diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index 6c56119569..b705057198 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -3862,8 +3862,20 @@ result = _.snakeCase('Foo Bar'); result = _('Foo Bar').snakeCase(); // _.startCase -result = _.startCase('--foo-bar'); -result = _('--foo-bar').startCase(); +module TestStartCase { + { + let result: string; + + result = _.startCase('--foo-bar'); + result = _('--foo-bar').startCase(); + } + + { + let result: _.LoDashExplicitWrapper; + + result = _('--foo-bar').chain().startCase(); + } +} // _.startsWith result = _.startsWith('abc', 'a'); diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index c68c47cf72..ec2747b09c 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -9327,6 +9327,7 @@ declare module _ { interface LoDashStatic { /** * Converts string to start case. + * * @param string The string to convert. * @return Returns the start cased string. */ @@ -9340,6 +9341,13 @@ declare module _ { startCase(): string; } + interface LoDashExplicitWrapper { + /** + * @see _.startCase + */ + startCase(): LoDashExplicitWrapper; + } + //_.startsWith interface LoDashStatic { /**