We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a6deec commit d0b48e9Copy full SHA for d0b48e9
types/index.d.ts
@@ -51,9 +51,7 @@ export class Engine {
51
removeFact(factOrId: string | Fact): boolean;
52
getFact<T>(factId: string): Fact<T>;
53
54
- on(eventName: "success", handler: EventHandler): this;
55
- on(eventName: "failure", handler: EventHandler): this;
56
- on<T>(eventName: string, handler: EventHandler<T>): this;
+ on<T = Event>(eventName: string, handler: EventHandler<T>): this;
57
58
run(facts?: Record<string, any>, runOptions?: RunOptions): Promise<EngineResult>;
59
stop(): this;
0 commit comments