mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Adding promises to GAPI
This commit is contained in:
parent
25ccf82570
commit
376e27131e
17
gapi/gapi.d.ts
vendored
17
gapi/gapi.d.ts
vendored
@ -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.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user