updated instructions for tns-platform-declarations (#4496)

* updated instructions for tns-platform-declarations

* fixed TypeScrtip recommended version
This commit is contained in:
Nick Iliev
2017-07-04 10:41:41 +03:00
committed by GitHub
parent fadfa58937
commit 923a7c7813

View File

@ -5,8 +5,7 @@ Offically supported entry points:
- `ios.d.ts` - For iOS SDK and runtime types.
Using the declarations may conflict with DOM typings,
consider using TypeScript 2.0.3 or newer,
and the following settings in your `tsconfig.json`:
consider using TypeScript 2.x.x and the following settings in your `tsconfig.json`:
```
{
"compilerOptions": {
@ -14,16 +13,15 @@ and the following settings in your `tsconfig.json`:
"target": "es5",
"experimentalDecorators": true,
"lib": [
"es2016"
"es6",
"dom"
]
}
}
```
And modify the content of `reference.d.ts` as follows:
Create `reference.d.ts`and add the following content:
```
/// <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" />
```