Closed florian-h05 closed 1 year ago
I'm no typescript expert, but the plain JS looks good to me. Happy to merge if there is no danger in the ts?
The ts code is no danger, it can never break the library's functionality. The worst thing that can happen with the ts files is, that the autocompletion doesn't work. I have just updated the CHANGELOG, feel free to merge @jpg0!
Replaces/Superseds #173.
Fixes https://github.com/openhab/openhab-addons/issues/12929.
Description
With this PR, the
JSRule
API adds additional information to the rule‘s action, so that MainUI is able to display the code that is executed when the rule runs together with a comment note. Theexecute
function is stringified by calling the JStoString
method on the function, Rule Builder is currently not supported (some useless code is displayed).To Do
@jpg0 WDYT?