json-rules-engine
json-rules-engine copied to clipboard
Typings incorrectly suggest that Rule.conditions is a setter
Rule.conditions is described as being a setter, and is also used as such in one of the tests. But doing this and then running the engine leads to a RuleResult that, when JSON-stringified, will throw an error. (This is because a Rule expects its conditions to be an instance of Condition.)
@chris-pardy What do you think?