From 2f951cdbd0e1edd56138c52456ae2bcb7eb6aa74 Mon Sep 17 00:00:00 2001 From: OJ Kwon Date: Mon, 20 Feb 2017 18:46:30 -0800 Subject: [PATCH] fix(ErrorObservable): remove type constraint to error value - closes #2395 --- src/observable/ErrorObservable.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(); }