mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Updated API reference.
This commit is contained in:
@@ -6,9 +6,6 @@ import request = require("http/http-request");
|
||||
declare var exports;
|
||||
require("utils/module-merge").merge(request, exports);
|
||||
|
||||
/**
|
||||
* Gets string from url.
|
||||
*/
|
||||
export function getString(arg: any): promises.Promise<string> {
|
||||
var d = promises.defer<string>();
|
||||
|
||||
@@ -19,9 +16,6 @@ export function getString(arg: any): promises.Promise<string> {
|
||||
return d.promise();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets JSON from url.
|
||||
*/
|
||||
export function getJSON<T>(arg: any): promises.Promise<T> {
|
||||
var d = promises.defer<T>();
|
||||
|
||||
@@ -32,10 +26,6 @@ export function getJSON<T>(arg: any): promises.Promise<T> {
|
||||
return d.promise();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets image from url.
|
||||
*/
|
||||
|
||||
export function getImage(arg: any): promises.Promise<image.ImageSource> {
|
||||
var d = promises.defer<image.ImageSource>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user