From bb474c630e7a42232e35bb5b1f1f52346a187f17 Mon Sep 17 00:00:00 2001 From: Tetsuharu OHZEKI Date: Tue, 25 Oct 2016 17:58:36 +0900 Subject: [PATCH] fix(IteratorObservable): clarify the return type of IteratorObservable.create() --- src/observable/IteratorObservable.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }