File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -187,11 +187,11 @@ export class Rule implements RuleProperties {
187
187
}
188
188
189
189
interface BooleanConditionResultProperties {
190
- result : boolean
190
+ result ? : boolean
191
191
}
192
192
193
193
interface ConditionResultProperties extends BooleanConditionResultProperties {
194
- factResult : any
194
+ factResult ?: unknown
195
195
}
196
196
197
197
interface ConditionProperties {
Original file line number Diff line number Diff line change @@ -137,13 +137,13 @@ const topLevelConditionResult = result.then(r => r.results[0].conditions);
137
137
expectType < Promise < TopLevelConditionResult > > ( topLevelConditionResult )
138
138
139
139
const topLevelAnyConditionsResult = topLevelConditionResult . then ( r => ( r as AnyConditionsResult ) . result ) ;
140
- expectType < Promise < boolean > > ( topLevelAnyConditionsResult )
140
+ expectType < Promise < boolean | undefined > > ( topLevelAnyConditionsResult )
141
141
142
142
const topLevelAllConditionsResult = topLevelConditionResult . then ( r => ( r as AllConditionsResult ) . result ) ;
143
- expectType < Promise < boolean > > ( topLevelAllConditionsResult )
143
+ expectType < Promise < boolean | undefined > > ( topLevelAllConditionsResult )
144
144
145
145
const topLevelNotConditionsResult = topLevelConditionResult . then ( r => ( r as NotConditionsResult ) . result ) ;
146
- expectType < Promise < boolean > > ( topLevelNotConditionsResult )
146
+ expectType < Promise < boolean | undefined > > ( topLevelNotConditionsResult )
147
147
148
148
// Alamanac tests
149
149
const almanac : Almanac = ( await engine . run ( ) ) . almanac ;
You can’t perform that action at this time.
0 commit comments