Skip to content

Commit

Permalink
call Rule.ruleEvent by its correct name
Browse files Browse the repository at this point in the history
  • Loading branch information
emilefokkemanavara committed Nov 21, 2024
1 parent 00061ac commit 933105f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default function engineFactory(
export class Engine {
constructor(rules?: Array<RuleProperties>, options?: EngineOptions);

addRule(rule: RuleProperties): this;
addRule(rule: RuleProperties | Rule): this;
removeRule(ruleOrName: Rule | string): boolean;
updateRule(rule: Rule): void;

Expand Down Expand Up @@ -171,11 +171,11 @@ export interface RuleResult {
): T extends true ? string : RuleResultSerializable;
}

export class Rule implements RuleProperties {
export class Rule {
constructor(ruleProps: RuleProperties | string);
name: string;
conditions: TopLevelCondition;
event: Event;
ruleEvent: Event;
priority: number;
setConditions(conditions: TopLevelCondition): this;
setEvent(event: Event): this;
Expand Down

0 comments on commit 933105f

Please sign in to comment.