CacheControl / CacheControl/json-rules-engine

Accessing Event on a Rule

Đang mở
#307 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
3.1k
Fork
507
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.