Merge pull request #10592 from fpoppinga/documentdbQueryIterator

add missing methods of documentDb QueryIterator interface
This commit is contained in:
Nathan Shively-Sanders
2016-08-12 09:49:44 -07:00
committed by GitHub

View File

@@ -93,7 +93,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;
hasMoreResults(): boolean;
nextItem(callback: (error : QueryError, item : TResultRow) => void): void;
reset() : void;
toArray(callback: (error: QueryError, result: TResultRow[]) => void): void;
}