You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on a project in node that uses your rule engine, and I've noticed something that I can't understand.
The Rule class definition implements: export class Rule implements RuleProperties { event: Event; }
But the Rule object uses ruleEvent: {}
Trying to access a rule's events with rule.event returns nothing (as expected).
I've looked at the js code and there's a method getEvent(), that is not in index.d.ts.
What's the reason for all of this?
It seems it's impossible to access the event data.
The text was updated successfully, but these errors were encountered:
r0drigor
changed the title
Rule class definition
Accessing Event on a Rule
Aug 3, 2022
@jochemvanweelde@r0drigor if there are places where there's disagreement between the .js and the .d.ts files those can/should be filed as bugs and we'd appreciate any bug-fixes.
Hello,
I'm working on a project in node that uses your rule engine, and I've noticed something that I can't understand.
The Rule class definition implements:
export class Rule implements RuleProperties { event: Event; }
But the Rule object uses
ruleEvent: {}
Trying to access a rule's events with
rule.event
returns nothing (as expected).I've looked at the js code and there's a method
getEvent()
, that is not in index.d.ts.What's the reason for all of this?
It seems it's impossible to access the event data.
The text was updated successfully, but these errors were encountered: