nativescript-android-declarations
Android TypeScript declarations for NativeScript for accessing native objects
npm i --save nativescript-android-declarations
- Version: 4.0.22
- GitHub: https://github.com/ArduinoMinas/nativescript-android-declarations
- NPM: https://www.npmjs.com/package/nativescript-android-declarations
- Downloads:
- Last Day: 0
- Last Week: 0
- Last Month: 0
This plugin contains type information about the native platforms as exposed by the NativeScript framework.
Supported entry points:
android.d.ts
- For android SDK and runtime types.
Using the declarations may conflict with DOM typings,
consider using TypeScript 2.x.x and the following settings in your tsconfig.json
:
{
"compilerOptions": {
"module": "commonjs",
"target": "es5",
"experimentalDecorators": true,
"lib": [
"es6",
"dom"
]
}
}
Create reference.d.ts
and add the following content:
/// <reference path="./node_modules/nativescript-android-declarations/android.d.ts" />
d.ts files require a lot of memory and CPU. Consider adding skipLibCheck option to tsconfig file.