diff --git a/gruntfile.js b/gruntfile.js
index ee522084f..35dba7957 100644
--- a/gruntfile.js
+++ b/gruntfile.js
@@ -113,6 +113,7 @@ module.exports = function(grunt) {
"!**/*.ios.d.ts",
"!tns-core-modules.d.ts",
"!tns-core-modules.es6.d.ts",
+ "!tns-core-modules.es2016.d.ts",
"!tns-core-modules.base.d.ts",
"!references.d.ts"
].concat(localCfg.defaultExcludes).concat(es6Excludes).concat(angularExcludes));
@@ -171,6 +172,7 @@ module.exports = function(grunt) {
"!tns-core-modules/libjs.d.ts",
"!tns-core-modules/lib.core.es6.d.ts",
"!tns-core-modules/lib.dom.d.ts",
+ "!tns-core-modules.es2016.d.ts",
"!tns-platform-declarations/**/*"
]);
localCfg.srcTsdFiles = [
diff --git a/tns-core-modules/tns-core-modules.es2016.d.ts b/tns-core-modules/tns-core-modules.es2016.d.ts
new file mode 100644
index 000000000..8efc3f411
--- /dev/null
+++ b/tns-core-modules/tns-core-modules.es2016.d.ts
@@ -0,0 +1,5 @@
+///
+///
+///
+
+// Use this .d.ts with TypeScript 2+ and compiler options "lib": ["es2016"]
\ No newline at end of file
diff --git a/tns-platform-declarations/README.md b/tns-platform-declarations/README.md
index a02095764..139883470 100644
--- a/tns-platform-declarations/README.md
+++ b/tns-platform-declarations/README.md
@@ -21,6 +21,8 @@ Consider the following settings in your `tsconfig.json`:
And add to the reference.d.ts:
```
+/// Needed for autocompletion and compilation.
+
///
///
```
diff --git a/tns-platform-declarations/package.json b/tns-platform-declarations/package.json
index 66815a71c..aea870b4f 100644
--- a/tns-platform-declarations/package.json
+++ b/tns-platform-declarations/package.json
@@ -1,6 +1,12 @@
{
"name": "tns-platform-declarations",
"version": "2.4.0",
+ "nativescript": {
+ "platforms": {
+ "ios": "2.4.0",
+ "android": "2.4.0"
+ }
+ },
"description": "Platform-specific TypeScript declarations for NativeScript for accessing native objects",
"main": "",
"scripts": {