mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-24 11:50:59 +08:00
Merge pull request #2689 from domesticmouse/patch-4
Adding promises to GAPI
This commit is contained in:
commit
afd98f0bd2
1 file changed
+17
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