SmartThingsCommunity / smartapp-sdk-nodejs

Javascript/NodeJS SDK to create SmartThings SmartApps
https://smartthings.developer.samsung.com/
Apache License 2.0
146 stars 80 forks source link

feat: Typescript types #149

Closed bflorian closed 4 years ago

bflorian commented 4 years ago

PR for documentation improvements and typescript support. It introduces typescript types, which can affect the compilation of typescript apps, but generally does not make changes to the JavaScript implementation classes other than removing the old comments that defined types, so that we don't have duplicate type definitions.

It also replaces the old, incomplete manually created markdown docs with new versions generated from the typescript declaration along with a manually created reference index at docs/index.md. The generated document are post-processed to remove implementation details that are not applicable to using the SDK.

lgtm-com[bot] commented 4 years ago

This pull request introduces 1 alert when merging a0ff6c9f0f45ef143926a8cc31da12ddb03aacd4 into 1985ade40166cb65810329be809d9b356cb45a89 - view on LGTM.com

new alerts: