mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00

* chore(tslint): fix tslint config & errors * chore(tslint): enable double quotes, whitespace, and arrow-return-shorthand rules and fix errors
11 lines
216 B
TypeScript
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;
|
|
});
|