Skip to content

Commit 1c46ec9

Browse files
authored
Add type definitions for changesReader methods (#258)
Adds missing definitions for pause() and resume() methods that are present in the documentation and nano.js implementation.
1 parent 1680101 commit 1c46ec9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/nano.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,10 @@ declare namespace nano {
271271
spool(opts: ChangesReaderOptions): EventEmitter;
272272
/** stop consuming the changes feed */
273273
stop(): void;
274+
/** pause consuming the changes feed */
275+
pause(): void;
276+
/** resume consuming the changes feed */
277+
resume(): void;
274278
}
275279

276280
/** Documents scope */

0 commit comments

Comments
 (0)