Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessing Event on a Rule #307

Open
r0drigor opened this issue Aug 3, 2022 · 2 comments
Open

Accessing Event on a Rule #307

r0drigor opened this issue Aug 3, 2022 · 2 comments

Comments

@r0drigor
Copy link

r0drigor commented Aug 3, 2022

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.

@r0drigor r0drigor changed the title Rule class definition Accessing Event on a Rule Aug 3, 2022
@jochemvanweelde
Copy link

any update on this?

@chris-pardy
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants