diff --git a/src/Subscriber.ts b/src/Subscriber.ts index 128672a7fb..6fec2a3356 100644 --- a/src/Subscriber.ts +++ b/src/Subscriber.ts @@ -13,8 +13,8 @@ export default class Subscriber extends Subscription implements Observer(next ?: (x?) => void, - error ?: (e?) => void, + static create(next ?: (x?:any) => void, + error ?: (e?:any) => void, complete?: () => void): Subscriber { const subscriber = new Subscriber(); subscriber._next = (typeof next === "function") && tryOrOnError(next) || noop;