Skip to content

Commit af64d48

Browse files
committed
refactor: drop support for iRuleDefinition
BREAKING
1 parent 2f3de1f commit af64d48

File tree

3 files changed

+12
-30
lines changed

3 files changed

+12
-30
lines changed

src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import type { IRuleDefinition } from "./main/interfaces/IRuleDefinition";
21
import type { IRulesConfig } from "./main/interfaces/IRulesConfig";
32

43
import { Compiler } from "./main/libs/Compiler";
@@ -39,4 +38,4 @@ export {
3938
scan,
4039
ScanResult,
4140
};
42-
export type { IRuleDefinition, IRulesConfig };
41+
export type { IRulesConfig };

src/main/interfaces/IRuleDefinition.ts

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/main/internals/internals.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
1-
import type { IRuleDefinition } from "../interfaces/IRuleDefinition";
21
import type { IRulesConfig } from "../interfaces/IRulesConfig";
2+
33
import { Compiler } from "../libs/Compiler";
44
import { Flow } from "../models/Flow";
55
import { FlowAttribute } from "../models/FlowAttribute";
66
import { FlowElement } from "../models/FlowElement";
7-
import { FlowType } from "../models/FlowType";
87
import { FlowNode } from "../models/FlowNode";
98
import { FlowResource } from "../models/FlowResource";
9+
import { FlowType } from "../models/FlowType";
1010
import { FlowVariable } from "../models/FlowVariable";
11+
import { ParsedFlow } from "../models/ParsedFlow";
1112
import { ResultDetails } from "../models/ResultDetails";
13+
import { RuleCommon } from "../models/RuleCommon";
1214
import { RuleResult } from "../models/RuleResult";
1315
import { ScanResult } from "../models/ScanResult";
14-
import { RuleCommon } from "../models/RuleCommon";
15-
import { ParsedFlow } from "../models/ParsedFlow";
1616

1717
export {
18+
Compiler,
19+
Flow,
1820
FlowAttribute,
1921
FlowElement,
2022
FlowNode,
23+
FlowResource,
2124
FlowType,
2225
FlowVariable,
23-
FlowResource,
24-
Flow,
25-
Compiler,
26-
ScanResult,
27-
RuleResult,
26+
ParsedFlow,
2827
ResultDetails,
2928
RuleCommon,
30-
ParsedFlow,
29+
RuleResult,
30+
ScanResult,
3131
};
32-
export type { IRuleDefinition, IRulesConfig };
32+
export type { IRulesConfig };

0 commit comments

Comments
 (0)