From 527298c48e0ed3a84c46a58ea15c7c0ce27bf7ec Mon Sep 17 00:00:00 2001 From: Ilya Mochalov Date: Sun, 23 Aug 2015 06:30:41 +0500 Subject: [PATCH] lodash: changed _.startCase() method --- lodash/lodash-tests.ts | 2 ++ lodash/lodash.d.ts | 15 ++++++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index 00ca144fd2..4369803ba6 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -1780,7 +1780,9 @@ result = _('08').parseInt(10); result = _.snakeCase('Foo Bar'); result = _('Foo Bar').snakeCase(); +// _.startCase result = _.startCase('--foo-bar'); +result = _('--foo-bar').startCase(); // _.startsWith result = _.startsWith('abc', 'a'); diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index 77daeca2a1..188556e6ee 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -7693,8 +7693,21 @@ declare module _ { snakeCase(): string; } + //_.startCase interface LoDashStatic { - startCase(str?: string): string; + /** + * Converts string to start case. + * @param string The string to convert. + * @return Returns the start cased string. + */ + startCase(string?: string): string; + } + + interface LoDashWrapper { + /** + * @see _.startCase + */ + startCase(): string; } //_.startsWith