mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Add npm script that generates ios .d.ts-es from the tests app
Less than 30 erros left, let's hope it still works Added lib.*.d.ts from typescript, removed lib and dom stuff, added by hand XHR, alert etc. .d.ts-es for polyfills Roll back some changes involved in separating UIEvent for dom and ios Test combined dts-es will now use lib, while internally we will not to avoid UIEvent conflict with dom stuff
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import application = require("application");
|
||||
declare var CACurrentMediaTime;
|
||||
|
||||
global.time = function(): number {
|
||||
global.time = function(): number {
|
||||
if (global.android) {
|
||||
return java.lang.System.nanoTime() / 1000000; // 1 ms = 1000000 ns
|
||||
}
|
||||
|
||||
1
apps/references.d.ts
vendored
1
apps/references.d.ts
vendored
@@ -1,5 +1,4 @@
|
||||
/// <reference path="../tns-core-modules/tns-core-modules.d.ts" /> Needed for autocompletion and compilation.
|
||||
/// <reference path="../tns-core-modules/android17.d.ts" /> Needed for autocompletion and compilation.
|
||||
/// <reference path="../tns-core-modules/ios.d.ts" /> Needed for autocompletion and compilation.
|
||||
/// <reference path="../tns-core-modules/org.nativescript.widgets.d.ts" /> Needed for autocompletion and compilation.
|
||||
/// <reference path="../tns-core-modules/declarations.android.d.ts" /> Needed for autocompletion and compilation.
|
||||
Reference in New Issue
Block a user