add import to example

Signed-off-by: goenning <me@goenning.net>
This commit is contained in:
goenning
2021-12-27 12:10:12 +00:00
parent e3b49153b7
commit d088a484db
@@ -91,6 +91,8 @@ export const exampleCheck: TechInsightJsonRuleCheck = {
json-rules-engine supports a limited [number of built-in operators](https://github.com/CacheControl/json-rules-engine/blob/master/docs/rules.md#operators) that can be used in conditions. You can add your own operators by adding them to the `operators` array in the `JsonRulesEngineFactCheckerFactory` constructor. For example:
```diff
+ import { Operator } from 'json-rules-engine';
const myFactCheckerFactory = new JsonRulesEngineFactCheckerFactory({
checks: [],
logger,