Update http.ts (#5551)

This commit is contained in:
slsumathi
2018-03-19 12:31:50 +05:30
committed by Alexander Vakrilov
parent 4cadb3f1a6
commit c02bb283a9

View File

@@ -1,7 +1,6 @@
import { ImageSource } from "../image-source"; import { ImageSource } from "../image-source";
import * as httpRequest from "./http-request"; import * as httpRequest from "./http-request";
export * from "./http-request";
global.moduleMerge(httpRequest, exports);
export function getString(arg: any): Promise<string> { export function getString(arg: any): Promise<string> {
return new Promise<string>((resolve, reject) => { return new Promise<string>((resolve, reject) => {
@@ -49,4 +48,4 @@ export function getFile(arg: any, destinationFilePath?: string): Promise<any> {
} }
}, e => reject(e)); }, e => reject(e));
}); });
} }