Merge pull request #10619 from fpoppinga/documentdbQueryIterator

add optional responseHeaders parameter to documentdb QueryIterator ca…
This commit is contained in:
Paul van Brenk
2016-08-15 11:49:51 -07:00
committed by GitHub
+4 -4
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. */