diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index 2edab368b..44dd7f79a 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -3978,8 +3978,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 80faa0d93..319bcfbad 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -9309,6 +9309,7 @@ declare module _ { interface LoDashStatic { /** * Converts string to kebab case. + * * @param string The string to convert. * @return Returns the kebab cased string. */ @@ -9322,6 +9323,13 @@ declare module _ { kebabCase(): string; } + interface LoDashExplicitWrapper { + /** + * @see _.kebabCase + */ + kebabCase(): LoDashExplicitWrapper; + } + //_.pad interface LoDashStatic { /**