From c0c6e35fbf62a976c751e165054068e5d8ca9967 Mon Sep 17 00:00:00 2001 From: Ilya Mochalov Date: Fri, 13 Feb 2015 20:23:53 +0500 Subject: [PATCH 1/2] Fix the argument of ArrayLikeSequence.concat() in Lazy.js definitions --- lazy.js/lazy.js.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lazy.js/lazy.js.d.ts b/lazy.js/lazy.js.d.ts index 7130a9d2da..d388ba6f71 100644 --- a/lazy.js/lazy.js.d.ts +++ b/lazy.js/lazy.js.d.ts @@ -176,7 +176,7 @@ declare module LazyJS { interface ArrayLikeSequence extends Sequence { // define()X; - concat(): ArrayLikeSequence; + concat(var_args: T[]): ArrayLikeSequence; first(count?: number): ArrayLikeSequence; get(index: number): T; length(): number; From 7b3d9556fa20092c9da283cf7d18c13ed9006a90 Mon Sep 17 00:00:00 2001 From: Ilya Mochalov Date: Fri, 13 Feb 2015 21:27:52 +0500 Subject: [PATCH 2/2] Fix the test of Lazy.js definitions --- lazy.js/lazy.js-tests.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lazy.js/lazy.js-tests.ts b/lazy.js/lazy.js-tests.ts index f719a90a90..cab0787c31 100644 --- a/lazy.js/lazy.js-tests.ts +++ b/lazy.js/lazy.js-tests.ts @@ -156,7 +156,7 @@ obj = fooSequence.toObject(); // ArrayLikeSequence -fooArraySeq = fooArraySeq.concat(); +fooArraySeq = fooArraySeq.concat(fooArr); fooArraySeq = fooArraySeq.first(); fooArraySeq = fooArraySeq.first(num); foo = fooArraySeq.get(num);