Skip to content

Commit 9036079

Browse files
committed
1 parent 4bd6c5c commit 9036079

File tree

5 files changed

+21
-6
lines changed

5 files changed

+21
-6
lines changed

build/multiplex.d.ts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,21 @@ declare module mx {
8080
* Creates A function expression from the specified string lambda expression
8181
* @param exp String lambda expression.
8282
*/
83-
function lambda<T>(exp: string): (...args: any[]) => T;
83+
function lambda<T, TResult>(exp: string): (obj: T) => TResult;
84+
85+
86+
/**
87+
* Creates A function expression from the specified string lambda expression
88+
* @param exp String lambda expression.
89+
*/
90+
function lambda<T1, T2, TResult>(exp: string): (obj1: T1, obj2: T2) => TResult;
91+
92+
93+
/**
94+
* Creates A function expression from the specified string lambda expression
95+
* @param exp String lambda expression.
96+
*/
97+
function lambda<TResult>(exp: string): (...args: any[]) => TResult;
8498

8599

86100
/**

build/multiplex.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2253,7 +2253,7 @@
22532253

22542254
return $extend(KeyValuePair, {
22552255
__hash__: function () { return $hash(this.key, this.value); },
2256-
__equals__: function (obj) { return $equals(this.key, obj.key) && $equals(this.value, obj.value); },
2256+
__equals__: function (obj) { return $is(obj, __KeyValuePair) && $equals(this.key, obj.key) && $equals(this.value, obj.value); },
22572257
});
22582258
})();
22592259

build/multiplex.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/multiplex.min.js

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/javascript/multiplex.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2253,7 +2253,7 @@
22532253

22542254
return $extend(KeyValuePair, {
22552255
__hash__: function () { return $hash(this.key, this.value); },
2256-
__equals__: function (obj) { return $equals(this.key, obj.key) && $equals(this.value, obj.value); },
2256+
__equals__: function (obj) { return $is(obj, __KeyValuePair) && $equals(this.key, obj.key) && $equals(this.value, obj.value); },
22572257
});
22582258
})();
22592259

0 commit comments

Comments
 (0)