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

- Use relative imports in place of most of our absolute ones. - Add "private" ambient modules for modules that we need to import using an absolute path (e.g. when app/.../test-something.ts needs to import ui/styling/style-scope)
Globals module for defining functions part of the global context - you need only to call require for this module and all globals will be registered. For example:
require("globals");
setTimeout(function(){ console.log("Test"); }, 2000);
Global functions/objects are: setTimeout, clearTimeout, setInterval, clearInterval and console.