Fix TypeScript 1.8 compile errors. Get rid of "ui" imports.

This commit is contained in:
Hristo Deshev
2016-02-24 09:48:37 +02:00
parent c9eb4d5890
commit 32ff1f3cfc
17 changed files with 83 additions and 92 deletions

View File

@ -1,7 +1,8 @@
import application = require("application");
import navPageModule = require("../nav-page");
import * as application from "application";
import {NavPage} from "../nav-page";
import {Page} from "ui/page";
import * as trace from "trace";
import trace = require("trace");
trace.enable();
trace.setCategories(trace.categories.concat(
trace.categories.NativeLifecycle,
@ -11,18 +12,14 @@ trace.setCategories(trace.categories.concat(
));
application.mainEntry = {
create: function () {
return new navPageModule.NavPage({
index: 0,
backStackVisible: true,
clearHistory: false,
animated: true,
transition: 0,
curve: 0,
duration: 0,
});
}
//backstackVisible: false,
//clearHistory: true
create: () => new NavPage({
index: 0,
backStackVisible: true,
clearHistory: false,
animated: true,
transition: 0,
curve: 0,
duration: 0,
})
};
application.start();

View File

@ -1,4 +1,5 @@
import {Page, ListPicker} from "ui";
import {Page} from "ui/page";
import {ListPicker} from "ui/list-picker";
var closeCallback: Function;
var page: Page;