diff --git a/lodash/lodash-3.10.d.ts b/lodash/lodash-3.10.d.ts index c570cc11c..c801e62a9 100644 --- a/lodash/lodash-3.10.d.ts +++ b/lodash/lodash-3.10.d.ts @@ -10432,19 +10432,27 @@ declare module _ { /** * Checks if value is empty. A value is considered empty unless it’s an arguments object, array, string, or * jQuery-like collection with a length greater than 0 or an object with own enumerable properties. + * * @param value The value to inspect. * @return Returns true if value is empty, else false. - **/ - isEmpty(value?: any[]|Dictionary|string|any): boolean; + */ + isEmpty(value?: any): boolean; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapperBase { /** * @see _.isEmpty */ isEmpty(): boolean; } + interface LoDashExplicitWrapperBase { + /** + * @see _.isEmpty + */ + isEmpty(): LoDashExplicitWrapper; + } + //_.isEqual interface IsEqualCustomizer { (value: any, other: any, indexOrKey?: number|string): boolean; diff --git a/lodash/lodash-tests-3.10.ts b/lodash/lodash-tests-3.10.ts index efe2e1b3e..7cad84c02 100644 --- a/lodash/lodash-tests-3.10.ts +++ b/lodash/lodash-tests-3.10.ts @@ -6574,12 +6574,26 @@ module TestIsElement { } // _.isEmpty -result = _.isEmpty([1, 2, 3]); -result = _.isEmpty({}); -result = _.isEmpty(''); -result = _([1, 2, 3]).isEmpty(); -result = _({}).isEmpty(); -result = _('').isEmpty(); +module TestIsEmpty { + { + let result: boolean; + + result = _.isEmpty(any); + result = _(1).isEmpty(); + result = _('').isEmpty(); + result = _([]).isEmpty(); + result = _({}).isEmpty(); + } + + { + let result: _.LoDashExplicitWrapper; + + result = _(1).chain().isEmpty(); + result = _('').chain().isEmpty(); + result = _([]).chain().isEmpty(); + result = _({}).chain().isEmpty(); + } +} // _.isEqual module TestIsEqual { diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index af33b66ac..e3c795094 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -5894,12 +5894,26 @@ module TestIsElement { } // _.isEmpty -result = _.isEmpty([1, 2, 3]); -result = _.isEmpty({}); -result = _.isEmpty(''); -result = _([1, 2, 3]).isEmpty(); -result = _({}).isEmpty(); -result = _('').isEmpty(); +module TestIsEmpty { + { + let result: boolean; + + result = _.isEmpty(any); + result = _(1).isEmpty(); + result = _('').isEmpty(); + result = _([]).isEmpty(); + result = _({}).isEmpty(); + } + + { + let result: _.LoDashExplicitWrapper; + + result = _(1).chain().isEmpty(); + result = _('').chain().isEmpty(); + result = _([]).chain().isEmpty(); + result = _({}).chain().isEmpty(); + } +} // _.isEqual module TestIsEqual { diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index f9249d16b..7b0f5ddf3 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -10009,19 +10009,27 @@ declare module _ { /** * Checks if value is empty. A value is considered empty unless it’s an arguments object, array, string, or * jQuery-like collection with a length greater than 0 or an object with own enumerable properties. + * * @param value The value to inspect. * @return Returns true if value is empty, else false. - **/ - isEmpty(value?: any[]|Dictionary|string|any): boolean; + */ + isEmpty(value?: any): boolean; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapperBase { /** * @see _.isEmpty */ isEmpty(): boolean; } + interface LoDashExplicitWrapperBase { + /** + * @see _.isEmpty + */ + isEmpty(): LoDashExplicitWrapper; + } + //_.isEqual interface LoDashStatic { /**