File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 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 {
187187}
188188
189189interface BooleanConditionResultProperties {
190- result : boolean
190+ result ? : boolean
191191}
192192
193193interface ConditionResultProperties extends BooleanConditionResultProperties {
194- factResult : any
194+ factResult ?: unknown
195195}
196196
197197interface ConditionProperties {
Original file line number Diff line number Diff line change @@ -137,13 +137,13 @@ const topLevelConditionResult = result.then(r => r.results[0].conditions);
137137expectType < Promise < TopLevelConditionResult > > ( topLevelConditionResult )
138138
139139const topLevelAnyConditionsResult = topLevelConditionResult . then ( r => ( r as AnyConditionsResult ) . result ) ;
140- expectType < Promise < boolean > > ( topLevelAnyConditionsResult )
140+ expectType < Promise < boolean | undefined > > ( topLevelAnyConditionsResult )
141141
142142const topLevelAllConditionsResult = topLevelConditionResult . then ( r => ( r as AllConditionsResult ) . result ) ;
143- expectType < Promise < boolean > > ( topLevelAllConditionsResult )
143+ expectType < Promise < boolean | undefined > > ( topLevelAllConditionsResult )
144144
145145const topLevelNotConditionsResult = topLevelConditionResult . then ( r => ( r as NotConditionsResult ) . result ) ;
146- expectType < Promise < boolean > > ( topLevelNotConditionsResult )
146+ expectType < Promise < boolean | undefined > > ( topLevelNotConditionsResult )
147147
148148// Alamanac tests
149149const almanac : Almanac = ( await engine . run ( ) ) . almanac ;
You can’t perform that action at this time.
0 commit comments