File tree 1 file changed +11
-4
lines changed
1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ export enum RuleEffect {
114
114
/**
115
115
* Represents a condition to be evaluated.
116
116
*/
117
- export interface Condition {
117
+ export interface BaseCondition {
118
118
/**
119
119
* The type of condition.
120
120
*/
@@ -124,7 +124,7 @@ export interface Condition {
124
124
/**
125
125
* A leaf condition.
126
126
*/
127
- export interface LeafCondition extends Condition , Scoped {
127
+ export interface LeafCondition extends BaseCondition , Scoped {
128
128
type : 'LEAF' ;
129
129
130
130
/**
@@ -133,7 +133,7 @@ export interface LeafCondition extends Condition, Scoped {
133
133
expectedValue : any ;
134
134
}
135
135
136
- export interface SchemaBasedCondition extends Condition , Scoped {
136
+ export interface SchemaBasedCondition extends BaseCondition , Scoped {
137
137
schema : JsonSchema ;
138
138
139
139
/**
@@ -153,7 +153,7 @@ export interface SchemaBasedCondition extends Condition, Scoped {
153
153
/**
154
154
* A composable condition.
155
155
*/
156
- export interface ComposableCondition extends Condition {
156
+ export interface ComposableCondition extends BaseCondition {
157
157
conditions : Condition [ ] ;
158
158
}
159
159
@@ -171,6 +171,13 @@ export interface AndCondition extends ComposableCondition {
171
171
type : 'AND' ;
172
172
}
173
173
174
+ export type Condition =
175
+ | BaseCondition
176
+ | LeafCondition
177
+ | OrCondition
178
+ | AndCondition
179
+ | SchemaBasedCondition ;
180
+
174
181
/**
175
182
* Common base interface for any UI schema element.
176
183
*/
You can’t perform that action at this time.
0 commit comments