diff --git a/src/observable/ErrorObservable.ts b/src/observable/ErrorObservable.ts index b369921f31..3e461be47f 100644 --- a/src/observable/ErrorObservable.ts +++ b/src/observable/ErrorObservable.ts @@ -12,7 +12,7 @@ export interface DispatchArg { * @extends {Ignored} * @hide true */ -export class ErrorObservable extends Observable { +export class ErrorObservable extends Observable { /** * Creates an Observable that emits no items to the Observer and immediately @@ -54,7 +54,7 @@ export class ErrorObservable extends Observable { * @name throw * @owner Observable */ - static create(error: T, scheduler?: IScheduler): ErrorObservable { + static create(error: any, scheduler?: IScheduler): ErrorObservable { return new ErrorObservable(error, scheduler); } @@ -63,7 +63,7 @@ export class ErrorObservable extends Observable { subscriber.error(error); } - constructor(public error: T, private scheduler?: IScheduler) { + constructor(public error: any, private scheduler?: IScheduler) { super(); }