Files
NativeScript/tns-platform-declarations
2017-03-28 18:08:59 +03:00
..
2017-03-28 18:08:59 +03:00
2016-09-27 09:48:22 +03:00
2017-02-20 10:01:31 +02:00
2016-11-08 12:46:48 +02:00
2017-02-20 10:24:22 +02:00

This plugin contains type information about the native platforms as exposed by the NativeScript framework.

Offically supported entry points:

  • android.d.ts - For android SDK and runtime types.
  • 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:

{
    "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.