Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
yaacovCR committed Aug 28, 2023
1 parent 6955592 commit 50cf1e6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/execution/IncrementalPublisher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,7 @@ export class IncrementalPublisher {
}
const incrementalResult: IncrementalStreamResult = {
items: subsequentResultRecord.items,
// safe because `id` is defined once the stream has been released as pending
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
id: subsequentResultRecord.streamRecord.id!,
};
Expand Down Expand Up @@ -625,6 +626,7 @@ export class IncrementalPublisher {
const incrementalDeferResult: IncrementalDeferResult = {
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
data: data!,
// safe because `id` is defined once the fragment has been released as pending
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
id: id!,
};
Expand All @@ -640,6 +642,7 @@ export class IncrementalPublisher {
completedRecord: DeferredFragmentRecord | StreamRecord,
): CompletedResult {
const result: CompletedResult = {
// safe because `id` is defined once the stream has been released as pending
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
id: completedRecord.id!,
};
Expand Down

0 comments on commit 50cf1e6

Please sign in to comment.