mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
AngularJS: fixed for 0.9.1.1
This commit is contained in:
Vendored
+9
-9
@@ -503,13 +503,13 @@ declare module ng {
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
interface IHttpService {
|
||||
// At least moethod and url must be provided...
|
||||
(config: IRequestConfig): IHttpPromise;
|
||||
get (url: string, RequestConfig?: any): IHttpPromise;
|
||||
delete (url: string, RequestConfig?: any): IHttpPromise;
|
||||
head(url: string, RequestConfig?: any): IHttpPromise;
|
||||
jsonp(url: string, RequestConfig?: any): IHttpPromise;
|
||||
post(url: string, data: any, RequestConfig?: any): IHttpPromise;
|
||||
put(url: string, data: any, RequestConfig?: any): IHttpPromise;
|
||||
(config: IRequestConfig): IHttpPromise<any>;
|
||||
get (url: string, RequestConfig?: any): IHttpPromise<any>;
|
||||
delete (url: string, RequestConfig?: any): IHttpPromise<any>;
|
||||
head(url: string, RequestConfig?: any): IHttpPromise<any>;
|
||||
jsonp(url: string, RequestConfig?: any): IHttpPromise<any>;
|
||||
post(url: string, data: any, RequestConfig?: any): IHttpPromise<any>;
|
||||
put(url: string, data: any, RequestConfig?: any): IHttpPromise<any>;
|
||||
defaults: IRequestConfig;
|
||||
|
||||
// For debugging, BUT it is documented as public, so...
|
||||
@@ -549,8 +549,8 @@ declare module ng {
|
||||
}
|
||||
|
||||
interface IHttpPromise<T> extends IPromise<T> {
|
||||
success(callback: IHttpPromiseCallback<T>): IHttpPromise;
|
||||
error(callback: IHttpPromiseCallback<T>): IHttpPromise;
|
||||
success(callback: IHttpPromiseCallback<T>): IHttpPromise<any>;
|
||||
error(callback: IHttpPromiseCallback<T>): IHttpPromise<any>;
|
||||
then(successCallback: (response: IHttpPromiseCallbackArg<T>) => any, errorCallback?: (response: IHttpPromiseCallbackArg<T>) => any): IPromise<any>;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user