mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-18 22:01:42 +08:00
namespaces removed (except Application)
This commit is contained in:
28
WebClient/web_client.d.ts
vendored
28
WebClient/web_client.d.ts
vendored
@ -1,17 +1,11 @@
|
||||
import image_module = require("Image/image");
|
||||
/**
|
||||
* Web (WebClient) module.
|
||||
*/
|
||||
export declare module tk {
|
||||
export module web {
|
||||
/**
|
||||
* The Client interface.
|
||||
*/
|
||||
export 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.tk.ui.Image) => void, errorCallback?: (e: Error) => void)
|
||||
}
|
||||
}
|
||||
}
|
||||
/**
|
||||
* The Client interface.
|
||||
*/
|
||||
import image_module = require("Image/image");
|
||||
|
||||
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)
|
||||
}
|
Reference in New Issue
Block a user