diff --git a/src/observable/IteratorObservable.ts b/src/observable/IteratorObservable.ts index 586afc6ad3..95905a7a49 100644 --- a/src/observable/IteratorObservable.ts +++ b/src/observable/IteratorObservable.ts @@ -13,7 +13,7 @@ import { Subscriber } from '../Subscriber'; export class IteratorObservable extends Observable { private iterator: any; - static create(iterator: any, scheduler?: Scheduler) { + static create(iterator: any, scheduler?: Scheduler): IteratorObservable { return new IteratorObservable(iterator, scheduler); }