However the decisionEngine is a function instead of object. Functions like addRule and importRules are not available, rather it is required to invoke decisionEngine as a function and then the returned object has the aforementioned functions.
Either docs should mention this or exports should be fixed.
According to docs to use engine below code has to be used and then functions can be invoked on the returned object.
However the decisionEngine is a function instead of object. Functions like addRule and importRules are not available, rather it is required to invoke decisionEngine as a function and then the returned object has the aforementioned functions. Either docs should mention this or exports should be fixed.