From 2711fd3bbd1486a52e9959f47c4cae1f42f1aa18 Mon Sep 17 00:00:00 2001 From: Ilya Mochalov Date: Thu, 29 Oct 2015 23:57:14 +0500 Subject: [PATCH] lodash: signatures of the method _.kebabCase 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 3afc49041..d5529f495 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -3820,8 +3820,20 @@ module TestEscapeRegExp { } // _.kebabCase -result = _.kebabCase('Foo Bar'); -result = _('Foo Bar').kebabCase(); +module TestKebabCase { + { + let result: string; + + result = _.kebabCase('Foo Bar'); + result = _('Foo Bar').kebabCase(); + } + + { + let result: _.LoDashExplicitWrapper; + + result = _('Foo Bar').chain().kebabCase(); + } +} // _.pad module TestPad { diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index d143f4e65..674c50a4b 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -9277,6 +9277,7 @@ declare module _ { interface LoDashStatic { /** * Converts string to kebab case. + * * @param string The string to convert. * @return Returns the kebab cased string. */ @@ -9290,6 +9291,13 @@ declare module _ { kebabCase(): string; } + interface LoDashExplicitWrapper { + /** + * @see _.kebabCase + */ + kebabCase(): LoDashExplicitWrapper; + } + //_.pad interface LoDashStatic { /**