From 20e2eec666ba31870dd81b4e56fef21ea638b24c Mon Sep 17 00:00:00 2001 From: Ilya Mochalov Date: Sat, 24 Oct 2015 23:57:27 +0500 Subject: [PATCH] lodash: signatures of the method _.startCase 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 c083edd4cf..403df86618 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -3601,8 +3601,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 8811243289..aee65c0981 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -9198,6 +9198,7 @@ declare module _ { interface LoDashStatic { /** * Converts string to start case. + * * @param string The string to convert. * @return Returns the start cased string. */ @@ -9211,6 +9212,13 @@ declare module _ { startCase(): string; } + interface LoDashExplicitWrapper { + /** + * @see _.startCase + */ + startCase(): LoDashExplicitWrapper; + } + //_.startsWith interface LoDashStatic { /**