mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 11:01:21 +08:00
Point TypeScript 2.0.3+ required for the platform declarations
This commit is contained in:
@ -5,7 +5,8 @@ Offically supported entry points:
|
||||
- `ios.d.ts` - For iOS SDK and runtime types.
|
||||
|
||||
Using the declarations may conflict with DOM typings,
|
||||
Consider the following settings in your `tsconfig.json`:
|
||||
consider using TypeScript 2.0.3 or newer,
|
||||
and the following settings in your `tsconfig.json`:
|
||||
```
|
||||
{
|
||||
"compilerOptions": {
|
||||
@ -19,9 +20,9 @@ Consider the following settings in your `tsconfig.json`:
|
||||
}
|
||||
```
|
||||
|
||||
And add to the reference.d.ts:
|
||||
And add to a reference.d.ts:
|
||||
```
|
||||
/// <reference path="./node_modules/tns-core-modules/tns-core-modules.es2016.d.ts" /> Needed for autocompletion and compilation.
|
||||
/// <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" />
|
||||
|
Reference in New Issue
Block a user