add missing methods of QueryIterator interface

This commit is contained in:
Finn Poppinga
2016-08-12 17:19:54 +02:00
parent 49d80420c0
commit db5cd79408
+6 -1
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;
}