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

[actions] Extend type definitions #148

Closed florian-h05 closed 1 year ago

florian-h05 commented 1 year ago

This extends (or really enables) the type definitions for the actions namespace.

I needed to change the way of exporting the actions to have the type definitions generated.

Also, I added the NotificationAction using a try_catch statement to cover the (rare?) case that somebody does not have the Cloud Connector add-on installed.

@digitaldan This is the PR I mentioned yesterday.

florian-h05 commented 1 year ago

@digitaldan I am planning to publish a new version (2.0.1) soon after this PR gets merged to publish the two bugfixes I made as well as this enhancement.