From 7f61bfa1d2cbb67c97a330243018c479fbd0c87d Mon Sep 17 00:00:00 2001 From: Ilya Mochalov Date: Fri, 6 Nov 2015 04:04:11 +0500 Subject: [PATCH] lodash: signatures of the method _.uniqueId have been changed --- lodash/lodash-tests.ts | 19 ++++++++++++++++--- lodash/lodash.d.ts | 8 ++++++++ 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index 876547fd6..f4ed9f1cc 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -5807,9 +5807,22 @@ module TestTimes { } // _.uniqueId -result = _.uniqueId(); -result = _.uniqueId(''); -result = _('').uniqueId(); +module TestUniqueId { + { + let result: string; + + result = _.uniqueId(); + result = _.uniqueId(''); + + result = _('').uniqueId(); + } + + { + let result: _.LoDashExplicitWrapper; + + result = _('').chain().uniqueId(); + } +} result = _.VERSION; result = <_.Support>_.support; diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index 359cc0fb9..022793f19 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -11557,6 +11557,7 @@ declare module _ { interface LoDashStatic { /** * Generates a unique ID. If prefix is provided the ID is appended to it. + * * @param prefix The value to prefix the ID with. * @return Returns the unique ID. */ @@ -11570,6 +11571,13 @@ declare module _ { uniqueId(): string; } + interface LoDashExplicitWrapper { + /** + * @see _.uniqueId + */ + uniqueId(): LoDashExplicitWrapper; + } + interface ListIterator { (value: T, index: number, collection: List): TResult; }