Skip to content
This repository was archived by the owner on Apr 20, 2018. It is now read-only.

Commit bd46f33

Browse files
Fixed a few places where errors would pop-up with noImplcityAny
1 parent d1c3b95 commit bd46f33

7 files changed

Lines changed: 9 additions & 9 deletions

File tree

ts/core/concurrency/scheduleperiodicrecursive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module Rx {
66
}
77

88
interface SchedulePeriodicRecursiveStatic {
9-
new (scheduler, state, period, action) : SchedulePeriodicRecursive;
9+
new (scheduler: any, state: any, period: any, action: any) : SchedulePeriodicRecursive;
1010
}
1111

1212
export var SchedulePeriodicRecursive: SchedulePeriodicRecursiveStatic;

ts/core/internal/util.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
/// <reference path="../observable.ts" />
33
module Rx {
44
export module internals {
5-
export var inherits: (child, parent) => void;
6-
export var addProperties: (obj, ...sources: any[]) => void;
5+
export var inherits: (child: any, parent: any) => void;
6+
export var addProperties: (obj: any, ...sources: any[]) => void;
77
export var addRef: <T>(xs: Observable<T>, r: { getDisposable(): IDisposable; }) => Observable<T>;
88
}
99
}

ts/core/linq/observable/transduce.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module Rx {
66
* @param {Transducer} transducer A transducer to execute
77
* @returns {Observable} An Observable sequence containing the results from the transducer.
88
*/
9-
transduce(transducer: any);
9+
transduce(transducer: any): any;
1010
//TODO: Setup transducer
1111
}
1212
}

ts/core/notification.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ module Rx {
4545
}
4646

4747
interface NotificationStatic {
48-
new <T>(kind, value, exception, accept, acceptObservable, toString) : Notification<T>;
48+
new <T>(kind: any, value: any, exception: any, accept: any, acceptObservable: any, toString: any) : Notification<T>;
4949

5050
/**
5151
* Creates an object that represents an OnNext notification to an observer.

ts/core/testing/reactivetest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ module Rx {
7979
var n : number = Rx.ReactiveTest.disposed;
8080

8181
var r : Rx.Recorded = Rx.ReactiveTest.onNext(100, 'abc');
82-
var r : Rx.Recorded = Rx.ReactiveTest.onNext(100, (v) => false);
82+
var r : Rx.Recorded = Rx.ReactiveTest.onNext(100, (v: any) => false);
8383
var r : Rx.Recorded = Rx.ReactiveTest.onError(100, new Error('abc'));
84-
var r : Rx.Recorded = Rx.ReactiveTest.onError(100, (v) => true);
84+
var r : Rx.Recorded = Rx.ReactiveTest.onError(100, (v: any) => true);
8585
var r : Rx.Recorded = Rx.ReactiveTest.onCompleted(100);
8686

8787
var s : Rx.Subscription = Rx.ReactiveTest.subscribe(100);

ts/core/testing/subscription.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module Rx {
2121
* @param {Number} subscribe Virtual time at which the subscription occurred.
2222
* @param {Number} unsubscribe Virtual time at which the unsubscription occurred.
2323
*/
24-
new (subscribeAt: number, unsubscribeAt?: number);
24+
new (subscribeAt: number, unsubscribeAt?: number): Subscription;
2525
}
2626

2727
export var Subscription: SubscriptionStatic;

ts/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"experimentalDecorators": true,
99
"emitDecoratorMetadata": true,
1010
"declaration": false,
11-
"noImplicitAny": false,
11+
"noImplicitAny": true,
1212
"removeComments": true,
1313
"noLib": false,
1414
"preserveConstEnums": true,

0 commit comments

Comments
 (0)