mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 20:11:24 +08:00
Added tests for npm-platform-declarations
This commit is contained in:
@ -115,7 +115,8 @@ var testsWithLongDelay = {
|
||||
testLoadUpperCaseSrc: 10000 * 5,
|
||||
test_SettingImageSrc: 30 * 1000,
|
||||
test_ChainingAnimations: 30 * 1000,
|
||||
test_AnimatingProperties: 30 * 1000
|
||||
test_AnimatingProperties: 30 * 1000,
|
||||
test_AnimateBackgroundColor_FromString: 10 * 1000
|
||||
}
|
||||
|
||||
var startTime;
|
||||
|
@ -1,3 +1,26 @@
|
||||
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 the following settings in your `tsconfig.json`:
|
||||
```
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es5",
|
||||
"experimentalDecorators": true,
|
||||
"lib": [
|
||||
"es2016"
|
||||
]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
And add to the reference.d.ts:
|
||||
```
|
||||
/// <reference path="./node_modules/tns-platform-declarations/ios.d.ts" />
|
||||
/// <reference path="./node_modules/tns-platform-declarations/android.d.ts" />
|
||||
```
|
||||
|
@ -29,5 +29,8 @@
|
||||
"bugs": {
|
||||
"url": "https://github.com/NativeScript/NativeScript/issues"
|
||||
},
|
||||
"homepage": "https://github.com/NativeScript/NativeScript#readme"
|
||||
"homepage": "https://github.com/NativeScript/NativeScript#readme",
|
||||
"devDependencies": {
|
||||
"typescript": "^2.0.3"
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user