Skip to content

Commit

Permalink
chore(typings): fixed compiler errors when using @next version of typ…
Browse files Browse the repository at this point in the history
…escript
  • Loading branch information
david-driscoll committed May 11, 2016
1 parent 993a2c3 commit 5cf7756
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/observable/BoundCallbackObservable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ export class BoundCallbackObservable<T> extends Observable<T> {
};
}

constructor(private callbackFunc: Function,
private selector: Function,
private args: any[],
constructor(public callbackFunc: Function,
public selector: Function,
public args: any[],
public scheduler: Scheduler) {
super();
}
Expand Down
4 changes: 2 additions & 2 deletions src/operator/zip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ class StaticArrayIterator<T> implements LookAheadIterator<T> {
next(value?: any): IteratorResult<T> {
const i = this.index++;
const array = this.array;
return i < this.length ? { value: array[i], done: false } : { done: true };
return i < this.length ? { value: array[i], done: false } : { value: null, done: true };
}

hasValue() {
Expand Down Expand Up @@ -277,7 +277,7 @@ class ZipBufferIterator<T, R> extends OuterSubscriber<T, R> implements LookAhead
next(): IteratorResult<T> {
const buffer = this.buffer;
if (buffer.length === 0 && this.isComplete) {
return { done: true };
return { value: null, done: true };
} else {
return { value: buffer.shift(), done: false };
}
Expand Down

0 comments on commit 5cf7756

Please sign in to comment.