diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index 0cd6d4523..4e3bb97da 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -1737,9 +1737,6 @@ class Mage { } } -result = _.uniqueId('contact_'); -result = _.uniqueId(); - /********* * String *********/ @@ -1942,6 +1939,11 @@ result = (_.methodOf(TestMethodOfObject, 1, 2))(['a', '0']); result = (_(TestMethodOfObject).methodOf(1, 2).value())('a[0]'); result = (_(TestMethodOfObject).methodOf(1, 2).value())(['a', '0']); +// _.uniqueId +result = _.uniqueId(); +result = _.uniqueId(''); +result = _('').uniqueId(); + result = _.VERSION; result = <_.Support>_.support; result = <_.TemplateSettings>_.templateSettings; diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index 027852220..f54bbbbb4 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -8345,13 +8345,20 @@ declare module _ { //_.uniqueId interface LoDashStatic { /** - * Generates a unique ID. If prefix is provided the ID will be appended to it. - * @param prefix The value to prefix the ID with. - * @return Returns the unique ID. - **/ + * 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. + */ uniqueId(prefix?: string): string; } + interface LoDashWrapper { + /** + * @see _.uniqueId + */ + uniqueId(): string; + } + //_.constant interface LoDashStatic { /**