Skip to content

Commit 70991ea

Browse files
author
Glynn Bird
committed
findAsStream returns a Promise which resolves as a stream
1 parent 7303332 commit 70991ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/nano.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ declare namespace nano {
552552
find(query: MangoQuery): Promise <MangoResponse<D>>;
553553
/** Run Mango query as a stream.
554554
* @see Docs: {@link http://docs.couchdb.org/en/latest/api/database/find.html#db-find} */
555-
findAsStream(query: MangoQuery): NodeJS.ReadStream;
555+
findAsStream(query: MangoQuery): Promise<NodeJS.ReadStream>;
556556
/** Server scope */
557557
server: ServerScope;
558558
/** Fetch information about a single partition in this database.

0 commit comments

Comments
 (0)