fitbit-sdk-types
Advanced tools
Comparing version 3.3.0-1 to 4.0.0-0
{ | ||
"name": "fitbit-sdk-types", | ||
"version": "3.3.0-1", | ||
"version": "4.0.0-0", | ||
"author": "Sergio Morchón Poveda <sergio.morchon@outlook.com>", | ||
@@ -22,3 +22,2 @@ "description": "Types for Fitbit SDK.", | ||
}, | ||
"types": "types", | ||
"scripts": { | ||
@@ -36,5 +35,5 @@ "test:app": "tsc -p test-code-samples/app", | ||
"devDependencies": { | ||
"@types/node": "^10.12.27", | ||
"@types/node": "^11.11.3", | ||
"prettier": "^1.16.4", | ||
"tslint": "^5.13.0", | ||
"tslint": "^5.14.0", | ||
"tslint-config-prettier": "^1.18.0", | ||
@@ -41,0 +40,0 @@ "typescript": "^3.3.3333" |
@@ -12,4 +12,44 @@ # Fitbit SDK Types ✔ | ||
2. Then, from that project root, run `npx fitbit-sdk-types apply` to apply TypeScript to your existing Fitbit project. | ||
3. Profit! | ||
You can also do it manually wit the following basic configuration files: | ||
- `app/tsconfig.json` | ||
```json | ||
{ | ||
"extends": "../tsconfig.json", | ||
"include": ["**/*.ts", "../node_modules/fitbit-sdk-types/types/device"] | ||
} | ||
``` | ||
- `companion/tsconfig.json` | ||
```json | ||
{ | ||
"extends": "../tsconfig.json", | ||
"include": ["**/*.ts", "../node_modules/fitbit-sdk-types/types/companion"] | ||
} | ||
``` | ||
- `settings/tsconfig.json` | ||
```json | ||
{ | ||
"extends": "../tsconfig.json", | ||
"include": [ | ||
"**/*.ts", | ||
"**/*.tsx", | ||
"../node_modules/fitbit-sdk-types/types/settings" | ||
] | ||
} | ||
``` | ||
- `tsconfig.json`: | ||
```json | ||
{ | ||
"extends": "./node_modules/@fitbit/sdk/sdk-tsconfig.json" | ||
} | ||
``` | ||
## Benefits of using types | ||
@@ -16,0 +56,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
46040
114