CacheControl / CacheControl/json-rules-engine

Accessing Event on a Rule

Aperta
#307 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
3.1k
Fork
507
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.