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

Typings incorrectly suggest that Rule.conditions is a setter

Open emilefokkemanavara opened this issue 9 months ago • 1 comments

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.)

emilefokkemanavara avatar May 29 '25 20:05 emilefokkemanavara

@chris-pardy What do you think?

emilefokkemanavara avatar Jun 25 '25 06:06 emilefokkemanavara