mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
Adding promises to GAPI
This commit is contained in:
Vendored
+17
@@ -141,6 +141,23 @@ declare module gapi.client {
|
||||
statusText: string;
|
||||
}
|
||||
) => any):void;
|
||||
/**
|
||||
* HttpRequest supports promises.
|
||||
*/
|
||||
then(success:(response:{
|
||||
result:T;
|
||||
body:string;
|
||||
headers?: any[];
|
||||
status?: number;
|
||||
statusText?: string
|
||||
})=>void,
|
||||
failure:(response:{
|
||||
result:T;
|
||||
body:string;
|
||||
headers?: any[];
|
||||
status?: number;
|
||||
statusText?: string
|
||||
})=>void): void;
|
||||
}
|
||||
/**
|
||||
* Represents an HTTP Batch operation. Individual HTTP requests are added with the add method and the batch is executed using execute.
|
||||
|
||||
Reference in New Issue
Block a user