From 9365314163597a33191b739166e26f34c2589448 Mon Sep 17 00:00:00 2001 From: Ilya Mochalov Date: Sat, 14 Nov 2015 18:47:39 +0500 Subject: [PATCH] lodash: signatures of the method _.lt have been changed --- lodash/lodash-tests.ts | 23 +++++++++++++++++++---- lodash/lodash.d.ts | 15 +++++++++++++-- 2 files changed, 32 insertions(+), 6 deletions(-) diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index 4c587b57b..1848d50d1 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -4330,10 +4330,25 @@ result = _([]).isUndefined(); result = _({}).isUndefined(); // _.lt -result = _.lt(1, 2); -result = _(1).lt(2); -result = _([]).lt(2); -result = _({}).lt(2); + +module TestLt { + { + let result: boolean; + + result = _.lt(any, any); + result = _(1).lt(any); + result = _([]).lt(any); + result = _({}).lt(any); + } + + { + let result: _.LoDashExplicitWrapper; + + result = _(1).chain().lt(any); + result = _([]).chain().lt(any); + result = _({}).chain().lt(any); + } +} // _.lte result = _.lte(1, 2); diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index 98d8bf55d..ebc078572 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -8513,20 +8513,31 @@ declare module _ { interface LoDashStatic { /** * Checks if value is less than other. + * * @param value The value to compare. * @param other The other value to compare. * @return Returns true if value is less than other, else false. */ - lt(value: any, other: any): boolean; + lt( + value: any, + other: any + ): boolean; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapperBase { /** * @see _.lt */ lt(other: any): boolean; } + interface LoDashExplicitWrapperBase { + /** + * @see _.lt + */ + lt(other: any): LoDashExplicitWrapper; + } + //_.lte interface LoDashStatic { /**