We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 235cf0a commit 1276218Copy full SHA for 1276218
1 file changed
src/engine.ts
@@ -5,6 +5,7 @@ import {Almanac} from './almanac'
5
import { EventEmitter } from 'events'
6
import { SuccessEventFact } from './engine-facts'
7
import {defaultOperators} from './engine-default-operators'
8
+import {Action} from './action.interface'
9
10
let debug = require('debug')('json-rules-engine')
11
@@ -244,7 +245,7 @@ export class Engine extends EventEmitter {
244
245
* @param {Object} runOptions - run options
246
* @return {Promise} resolves when the engine has completed running
247
*/
- run (runtimeFacts = {}) {
248
+ run (runtimeFacts = {}): Promise<Action[]> {
249
debug(`engine::run started`)
250
debug(`engine::run runtimeFacts:`, runtimeFacts)
251
runtimeFacts['success-events'] = new Fact('success-events', SuccessEventFact(), { cache: false })
0 commit comments