json-rules-engine icon indicating copy to clipboard operation
json-rules-engine copied to clipboard

Rule Ts incorrect

Open set321go opened this issue 4 years ago • 0 comments

The rule.js recently refactored the rule.event property to rule.ruleEvent (80e84b3ada7df7fca20aba21e37d8b5ee4257023) but there were no corresponding updates to the types when using the types accessing the property directly does not work as expected.

Should the type use rule.ruleEvent or should it use accessors for the event?

js & ts are not my speciality but i think the 'event' property of the interface needs to have a get function & set function that are actually the getEvent and setEvent functions.

set321go avatar Feb 17 '21 17:02 set321go