CacheControl / CacheControl/json-rules-engine

Accessing Event on a Rule

Offen
#307 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
3.1k
Forks
507
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.