Skip to content

Commit

Permalink
style(bindNodeCallback): fix no implicit any errors
Browse files Browse the repository at this point in the history
  • Loading branch information
benlesh committed Jan 13, 2016
1 parent 497bb0d commit 2b707fa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/observable/bindNodeCallback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ export class BoundNodeCallbackObservable<T> extends Observable<T> {
static create<T>(callbackFunc: Function,
selector: Function = undefined,
scheduler?: Scheduler): Function {
return (...args): Observable<T> => {
return (...args: any[]): Observable<T> => {
return new BoundNodeCallbackObservable(callbackFunc, selector, args, scheduler);
};
}

constructor(private callbackFunc: Function,
private selector,
private selector: Function,
private args: any[],
public scheduler: Scheduler) {
super();
Expand All @@ -33,7 +33,7 @@ export class BoundNodeCallbackObservable<T> extends Observable<T> {
if (!scheduler) {
if (!subject) {
subject = this.subject = new AsyncSubject<T>();
const handler = function handlerFn(...innerArgs) {
const handler = function handlerFn(...innerArgs: any[]) {
const source = (<any>handlerFn).source;
const { selector, subject } = source;
const err = innerArgs.shift();
Expand Down Expand Up @@ -77,7 +77,7 @@ function dispatch<T>(state: { source: BoundNodeCallbackObservable<T>, subscriber
if (!subject) {
subject = source.subject = new AsyncSubject<T>();

const handler = function handlerFn(...innerArgs) {
const handler = function handlerFn(...innerArgs: any[]) {
const source = (<any>handlerFn).source;
const { selector, subject } = source;
const err = innerArgs.shift();
Expand Down

0 comments on commit 2b707fa

Please sign in to comment.