mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-18 22:01:42 +08:00
Promises added and implemented experimentally in WebClient
This commit is contained in:
8
WebClient/web_client.d.ts
vendored
8
WebClient/web_client.d.ts
vendored
@ -4,8 +4,8 @@
|
||||
import image_module = require("Image/image");
|
||||
|
||||
export declare class Client {
|
||||
private static get(url: string, successCallback: (result: any) => void, errorCallback?: (e: Error) => void)
|
||||
getString(url: string, successCallback: (result: string) => void, errorCallback?: (e: Error) => void)
|
||||
getJSON(url: string, successCallback: (result: Object) => void, errorCallback?: (e: Error) => void)
|
||||
getImage(url: string, successCallback: (result: image_module.Image) => void, errorCallback?: (e: Error) => void)
|
||||
private static get(url: string, successCallback?: (result: any) => void, errorCallback?: (e: Error) => void)
|
||||
getString(url: string, successCallback?: (result: string) => void, errorCallback?: (e: Error) => void)
|
||||
getJSON(url: string, successCallback?: (result: Object) => void, errorCallback?: (e: Error) => void)
|
||||
getImage(url: string, successCallback?: (result: image_module.Image) => void, errorCallback?: (e: Error) => void)
|
||||
}
|
Reference in New Issue
Block a user