@@ -565,7 +565,9 @@ export class IncrementalPublisher {
565
565
continue ;
566
566
}
567
567
const incrementalResult : IncrementalStreamResult = {
568
- items : subsequentResultRecord . items ,
568
+ // safe because `items` is always defined when the record is completed
569
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
570
+ items : subsequentResultRecord . items ! ,
569
571
// safe because `id` is defined once the stream has been released as pending
570
572
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
571
573
id : subsequentResultRecord . streamRecord . id ! ,
@@ -624,6 +626,7 @@ export class IncrementalPublisher {
624
626
) ;
625
627
const id = recordWithLongestPath . id ;
626
628
const incrementalDeferResult : IncrementalDeferResult = {
629
+ // safe because `data``is always defined when the record is completed
627
630
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
628
631
data : data ! ,
629
632
// safe because `id` is defined once the fragment has been released as pending
@@ -825,7 +828,7 @@ export class StreamItemsRecord {
825
828
errors : Array < GraphQLError > ;
826
829
streamRecord : StreamRecord ;
827
830
path : ReadonlyArray < string | number > ;
828
- items : Array < unknown > ;
831
+ items : Array < unknown > | undefined ;
829
832
children : Set < SubsequentResultRecord > ;
830
833
isFinalRecord ?: boolean ;
831
834
isCompletedAsyncIterator ?: boolean ;
@@ -839,7 +842,6 @@ export class StreamItemsRecord {
839
842
this . errors = [ ] ;
840
843
this . isCompleted = false ;
841
844
this . filtered = false ;
842
- this . items = [ ] ;
843
845
}
844
846
}
845
847
0 commit comments