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 f6e27a0 commit 22dcd7dCopy full SHA for 22dcd7d
types/index.test-d.ts
@@ -7,6 +7,7 @@ import rulesEngine, {
7
Fact,
8
Operator,
9
OperatorEvaluator,
10
+ PathResolver,
11
Rule,
12
RuleProperties,
13
RuleSerializable
@@ -44,6 +45,10 @@ const complexRuleProps: RuleProperties = {
44
45
}
46
};
47
48
+// path resolver
49
+const pathResolver = function(value: object, path: string): any {}
50
+expectType<PathResolver>(pathResolver)
51
+
52
// default export test
53
expectType<Engine>(rulesEngine([ruleProps]));
54
const engine = rulesEngine([complexRuleProps]);
0 commit comments