openhab / openhab-js

openHAB JavaScript Library for JavaScript Scripting Automation
https://www.openhab.org/addons/automation/jsscripting/
Eclipse Public License 2.0
38 stars 31 forks source link

[items & things] Enhance type definitions #152

Closed florian-h05 closed 1 year ago

florian-h05 commented 1 year ago

This PR updates JSDoc comments for Items and Things to fix type definitions of returns from get functions like items.getItem and things.getThing etc.

This PR should find a good compromise between JSDoc and TypeScript compatibility.

florian-h05 commented 1 year ago

@digitaldan I then will resolve conflicts and merge.

I am going to release a new version after this and update the JS Scripting add-on with the new version.