@@ -33,7 +33,7 @@ export declare class Promise {
3333 // commented out to speed up adoption of TPromise
3434 // static timeout(delay:number):Promise;
3535
36- static wrapError ( error : any ) : Promise ;
36+ static wrapError ( error : Error ) : Promise ;
3737 // static is(value: any): value is Thenable<any>;
3838 // static addEventListener(type: string, fn: EventCallback): void;
3939
@@ -106,7 +106,7 @@ export declare class TPromise<V> {
106106 public static wrap < ValueType > ( value : Thenable < ValueType > ) : TPromise < ValueType > ;
107107 public static wrap < ValueType > ( value : ValueType ) : TPromise < ValueType > ;
108108
109- public static wrapError < ValueType > ( error : any ) : TPromise < ValueType > ;
109+ public static wrapError < ValueType > ( error : Error ) : TPromise < ValueType > ;
110110
111111 /**
112112 * @internal
@@ -134,5 +134,5 @@ export declare class PPromise<C, P> extends TPromise<C> {
134134 public static join < C , P > ( promises : PPromise < C , P > [ ] ) : PPromise < C , P [ ] > ;
135135 public static join < C , P > ( promises : { [ n : string ] : PPromise < C , P > } ) : PPromise < { [ n : string ] : C } , P > ;
136136 public static any < C , P > ( promises : PPromise < C , P > [ ] ) : PPromise < { key : string ; value : PPromise < C , P > ; } , P > ;
137- public static wrapError < V > ( error : any ) : TPromise < V > ;
137+ public static wrapError < V > ( error : Error ) : TPromise < V > ;
138138}
0 commit comments