File tree Expand file tree Collapse file tree
packages/server/src/supervisor Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -583,8 +583,8 @@ function parseSupervisorEvaluationResult(
583583 ? record . guidance . trim ( ) . slice ( 0 , guidanceMaxChars )
584584 : undefined ;
585585
586- const plan = Array . isArray ( record . plan )
587- ? record . plan . flatMap ( ( value ) => {
586+ const plan : SupervisorPlanStep [ ] | undefined = Array . isArray ( record . plan )
587+ ? record . plan . flatMap < SupervisorPlanStep > ( ( value ) => {
588588 if ( ! value || typeof value !== "object" ) {
589589 return [ ] ;
590590 }
@@ -600,8 +600,8 @@ function parseSupervisorEvaluationResult(
600600 } )
601601 : undefined ;
602602
603- const stepUpdates = Array . isArray ( record . stepUpdates )
604- ? record . stepUpdates . flatMap ( ( value ) => {
603+ const stepUpdates : SupervisorCycleStepUpdate [ ] | undefined = Array . isArray ( record . stepUpdates )
604+ ? record . stepUpdates . flatMap < SupervisorCycleStepUpdate > ( ( value ) => {
605605 if ( ! value || typeof value !== "object" ) {
606606 return [ ] ;
607607 }
You can’t perform that action at this time.
0 commit comments