Upgrade to TypeScript 2.1, and latest grunt-ts. (#3609)

* Upgrade to TypeScript 2.1, and latest grunt-ts.
* Remove AudioBuffer and UIEvent from the definitions, we now should be compatible with dom
* Update the tns-platform-declarations readme
This commit is contained in:
Hristo Deshev
2017-02-08 16:11:40 +02:00
committed by Hristo Deshev
parent 513aeaa47b
commit 489be1e460
23 changed files with 85 additions and 4475 deletions

View File

@@ -91,15 +91,6 @@ module.exports = function(grunt) {
var angularExcludes = angularConflicts.map(function(file) {
return '!' + file;
});
var nonES6Files = [
'es-collections.d.ts',
'es6-promise.d.ts',
'es6.d.ts',
'weakmap.d.ts',
];
var es6Excludes = nonES6Files.map(function(file) {
return '!' + file;
});
var dtsFiles = grunt.file.expand({cwd: srcDir }, [
"**/*.d.ts",
//Exclude the d.ts files in the apps folder - these are part of the apps and are already packed there!
@@ -117,13 +108,13 @@ module.exports = function(grunt) {
"!tns-core-modules.base.d.ts",
"!references.d.ts",
"!webworker.es2016.d.ts"
].concat(localCfg.defaultExcludes).concat(es6Excludes).concat(angularExcludes));
].concat(localCfg.defaultExcludes).concat(angularExcludes));
dtsFiles.sort();
writeDtsFile(dtsFiles, outDir, 'tns-core-modules/tns-core-modules.base.d.ts');
var es6Files = angularConflicts.concat(['tns-core-modules.base.d.ts']);
writeDtsFile(es6Files, outDir, 'tns-core-modules/tns-core-modules.es6.d.ts');
var allFiles = angularConflicts.concat(nonES6Files).concat(['tns-core-modules.base.d.ts']);
var allFiles = angularConflicts.concat(['tns-core-modules.base.d.ts']);
writeDtsFile(allFiles, outDir, 'tns-core-modules/tns-core-modules.d.ts');
}