Files
NativeScript/tests/app/http/http-string-worker.ts
Manol Donev 03cfc0cee3 chore(tslint): update tslint rules and fix errors (#5747)
* chore(tslint): fix tslint config & errors
* chore(tslint): enable double quotes, whitespace, and arrow-return-shorthand rules and fix errors
2018-04-26 18:36:32 +03:00

11 lines
216 B
TypeScript

require("globals");
import * as http from "tns-core-modules/http";
declare var postMessage: any;
http.getString("https://httpbin.org/get").then(function (r) {
postMessage(r);
}, function (e) {
throw e;
});