add optional responseHeaders parameter to documentdb QueryIterator callbacks

This commit is contained in:
Finn Poppinga
2016-08-15 08:55:20 +02:00
parent db5cd79408
commit cc84a3fe40

View File

@@ -94,12 +94,12 @@ declare module 'documentdb' {
/** Represents the result returned from a query. */
interface QueryIterator<TResultRow> {
current(): TResultRow;
executeNext(callback: (error: QueryError, result: TResultRow[]) => void): void;
forEach(iteratorFunction : (error: QueryError, element: TResultRow) => void): void;
executeNext(callback: (error: QueryError, result: TResultRow[], responseHeaders? : any) => void): void;
forEach(iteratorFunction : (error: QueryError, element: TResultRow, responseHeaders? : any) => void): void;
hasMoreResults(): boolean;
nextItem(callback: (error : QueryError, item : TResultRow) => void): void;
nextItem(callback: (error : QueryError, item : TResultRow, responseHeaders? : any) => void): void;
reset() : void;
toArray(callback: (error: QueryError, result: TResultRow[]) => void): void;
toArray(callback: (error: QueryError, result: TResultRow[], responseHeaders? : any) => void): void;
}
/** Reprents an object with a unique identifier. */