mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
BCL: added console, added references, added libjs.d.ts based on MS lib.d.ts without DOM
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
import app_common_module = require("Application/application_common");
|
||||
import console_module = require("Console/console_common");
|
||||
|
||||
var currentApp = app_common_module.tk.ui.Application.current;
|
||||
declare var exports;
|
||||
exports.tk = app_common_module.tk;
|
||||
|
||||
export module tk {
|
||||
// TODO: This is tricky, we have a module named android down in the hierarchy and we need to declare it here
|
||||
@@ -96,6 +100,7 @@ export module tk {
|
||||
currentApp.os = app_common_module.tk.TargetOS.Android;
|
||||
currentApp.android = app;
|
||||
app.init();
|
||||
console = new console_module.tk.TKConsole();
|
||||
}
|
||||
|
||||
class Application {
|
||||
|
||||
Reference in New Issue
Block a user