mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Change from "classic" TS 1.6 imports to the default resolution scheme.
- 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)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import appModule = require("application");
|
||||
import common = require("connectivity/connectivity-common");
|
||||
import common = require("./connectivity-common");
|
||||
import utils = require("utils/utils");
|
||||
|
||||
global.moduleMerge(common, exports);
|
||||
@@ -46,4 +46,4 @@ export function startMonitoring(connectionTypeChangedCallback: (newConnectionTyp
|
||||
|
||||
export function stopMonitoring(): void {
|
||||
appModule.android.unregisterBroadcastReceiver(android.net.ConnectivityManager.CONNECTIVITY_ACTION);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import common = require("connectivity/connectivity-common");
|
||||
import common = require("./connectivity-common");
|
||||
|
||||
global.moduleMerge(common, exports);
|
||||
|
||||
@@ -84,4 +84,4 @@ export function stopMonitoring(): void {
|
||||
_monitorReachabilityRef = undefined;
|
||||
_connectionTypeChangedCallback = undefined;;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user