Files
scrypted/sdk/tsconfig.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

15 lines
306 B
JSON

{
"compilerOptions": {
"module": "commonjs",
"target": "ES2020",
"noImplicitAny": true,
"esModuleInterop": true,
"sourceMap": true,
"declaration": true,
"outDir": "dist",
"strict": true
},
"include": [
"src/**/*",
],
}