CacheControl / CacheControl/json-rules-engine

Accessing Event on a Rule

オープン
#307 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
3.1k
フォーク
507
PR マージ指標
30日以内にマージされた PR はありません

説明

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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。