@@ -197,16 +197,28 @@ export namespace Incremental {
197197 // (undocumented)
198198 export interface IncrementalRequest <Chunk extends Record <string , unknown >, TData > {
199199 // (undocumented)
200- getPendingType ? : (id : string ) => " defer " | " stream " ;
200+ getPendingWithInfo ? : () => Array < PendingItemWithInfo > ;
201201 // (undocumented)
202202 handle: (cacheData : TData | DeepPartial <TData > | undefined | null , chunk : Chunk ) => FormattedExecutionResult <TData >;
203203 // (undocumented)
204204 hasNext: boolean ;
205- // (undocumented)
206- pending? : Array <Incremental .PendingResult >;
207205 }
208206 // (undocumented)
209207 export type Path = ReadonlyArray <string | number >;
208+ // @internal @deprecated (undocumented)
209+ export interface PendingDeferResultWithInfo {
210+ // (undocumented)
211+ delivered: boolean ;
212+ // (undocumented)
213+ path: Incremental .Path ;
214+ // (undocumented)
215+ type: " defer" ;
216+ }
217+ // Warning: (ae-incompatible-release-tags) The symbol "PendingItemWithInfo" is marked as @public, but its signature references "Incremental" which is marked as @internal
218+ // Warning: (ae-incompatible-release-tags) The symbol "PendingItemWithInfo" is marked as @public, but its signature references "Incremental" which is marked as @internal
219+ //
220+ // (undocumented)
221+ export type PendingItemWithInfo = PendingDeferResultWithInfo | PendingStreamResultWithInfo ;
210222 // (undocumented)
211223 export interface PendingResult {
212224 // (undocumented)
@@ -217,6 +229,13 @@ export namespace Incremental {
217229 path: Incremental .Path ;
218230 }
219231 // @internal @deprecated (undocumented)
232+ export interface PendingStreamResultWithInfo {
233+ // (undocumented)
234+ path: Incremental .Path ;
235+ // (undocumented)
236+ type: " stream" ;
237+ }
238+ // @internal @deprecated (undocumented)
220239 export interface StartRequestOptions {
221240 // (undocumented)
222241 query: DocumentNode ;
@@ -233,13 +252,19 @@ export namespace Incremental {
233252// @public (undocumented)
234253class IncrementalRequest <TData > implements Incremental .IncrementalRequest <GraphQL17Alpha9Handler .Chunk <TData >, TData > {
235254 // (undocumented)
236- getPendingType(id : string ): " defer" | " stream" ;
255+ getPendingWithInfo(): ({
256+ type: " stream" ;
257+ path: Incremental .Path ;
258+ delivered? : undefined ;
259+ } | {
260+ type: " defer" ;
261+ delivered: boolean ;
262+ path: Incremental .Path ;
263+ })[];
237264 // (undocumented)
238265 handle(cacheData : TData | DeepPartial <TData > | null | undefined , chunk : GraphQL17Alpha9Handler .Chunk <TData >): FormattedExecutionResult <TData >;
239266 // (undocumented)
240267 hasNext: boolean ;
241- // (undocumented)
242- get pending(): GraphQL17Alpha9Handler .PendingResult [];
243268}
244269
245270// @public (undocumented)
0 commit comments