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

This reverts commit 79e6881ca6.
This commit is contained in:
Hristo Deshev
2017-02-09 11:41:27 +02:00
parent 489be1e460
commit 13dc8cecae
23 changed files with 4475 additions and 85 deletions

View File

@@ -4,10 +4,28 @@ Offically supported entry points:
- `android.d.ts` - For android SDK and runtime types.
- `ios.d.ts` - For iOS SDK and runtime types.
Add to the content of `reference.d.ts`:
Using the declarations may conflict with DOM typings,
consider using TypeScript 2.0.3 or newer,
and the following settings in your `tsconfig.json`:
```
{
"compilerOptions": {
"module": "commonjs",
"target": "es5",
"experimentalDecorators": true,
"lib": [
"es2016"
]
}
}
```
And modify the content of `reference.d.ts` as follows:
```
/// <reference path="./node_modules/tns-core-modules/tns-core-modules.es2016.d.ts" />
/// <reference path="./node_modules/tns-platform-declarations/ios.d.ts" />
/// <reference path="./node_modules/tns-platform-declarations/android.d.ts" />
```
d.ts files require a lot of memory and CPU. Consider adding `--skipLibCheck` option to tsconfig file.
d.ts files require a lot of memory and CPU. Consider adding skipLibCheck option to tsconfig file.