mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-24 11:50:59 +08:00
AngularJS: fixed for 0.9.1.1
This commit is contained in:
1 parent
fcced26254
commit
f942d086b0
1 file changed
+9
-9
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