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:
Hristo Deshev
2015-09-29 13:54:21 +03:00
parent ae632bb55e
commit 77838ae9c6
108 changed files with 346 additions and 194 deletions

View File

@@ -1,4 +1,4 @@
import Common = require("application-settings/application-settings-common");
import Common = require("./application-settings-common");
import utils = require("utils/utils");
var sharedPreferences = utils.ad.getApplicationContext().getSharedPreferences("prefs.db", 0);
@@ -63,4 +63,4 @@ export var remove = function (key: string): void {
var editor = sharedPreferences.edit();
editor.remove(key);
editor.commit();
}
}

View File

@@ -1,4 +1,4 @@
import Common = require("application-settings/application-settings-common");
import Common = require("./application-settings-common");
var userDefaults = NSUserDefaults.standardUserDefaults();
@@ -58,4 +58,4 @@ export var remove = function (key: string): void {
Common.checkKey(key);
userDefaults.removeObjectForKey(key);
userDefaults.synchronize();
}
}