Files
scrypted/sdk/types/package.json
Long Zheng dd7d920480 sdk: Add strict types to sdk (#1308)
* Enable strict mode

* Add @types/node

Remove @types/rimraf

* Fix `include` path to be actual `src`

* Add strict to `sdk`

* Assert `getItem`

* Fix types in SDK

* Refactor SDK function to be type safe

* parseValue handle value null or undefined

* Fix types tsconfig

* Make getDeviceConsole required

* Add build-sdk workflow

* Set working directory

* Assert not undefined

* Remove optionals

* Undo addScryptedInterfaceProperties, revert to self executing function

* Use different type

* Make _deviceState private and add ts-ignore

* Remove unused function

* Remove non-null asserts

* Add tsconfig for sdk/types/src

* Get property isOptional from schema

Use typedoc types

* Type fixes

* Fix type

* Fix type

* Revert change
2024-02-15 15:17:31 -08:00

19 lines
433 B
JSON

{
"name": "@scrypted/types",
"version": "0.3.11",
"description": "",
"main": "dist/index.js",
"author": "",
"license": "ISC",
"scripts": {
"prepublishOnly": "npm run build",
"build": "tsc --project src && rimraf dist gen && typedoc && ts-node ./src/build.ts && tsc"
},
"devDependencies": {
"@types/node": "^18.19.15",
"rimraf": "^3.0.2",
"ts-node": "^10.9.1"
},
"types": "dist/index.d.ts"
}