Skip to content

Commit

Permalink
Add highWaterMarkBytes and fillCache options
Browse files Browse the repository at this point in the history
Out of scope, but the easiest way to type these options atm.
  • Loading branch information
vweevers committed Feb 19, 2022
1 parent fbb6d03 commit 3b2acc9
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,24 @@ export interface ReadStreamOptions {
* @defaultValue `1000`
*/
highWaterMark?: number | undefined

/**
* Limit the amount of data that the underlying iterator will hold in memory.
*
* Only supported by [`classic-level`][1] and [`rocks-level`][2], and possibly by
* similar `abstract-level` implementations that are backed by a database on disk.
*
* [1]: https://github.com/Level/classic-level
* [2]: https://github.com/Level/rocks-level
*/
highWaterMarkBytes?: number | undefined

/**
* Only supported by [`classic-level`][1] and [`rocks-level`][2], and possibly by
* similar `abstract-level` implementations that are backed by a database on disk.
*
* [1]: https://github.com/Level/classic-level
* [2]: https://github.com/Level/rocks-level
*/
fillCache?: boolean | undefined
}

0 comments on commit 3b2acc9

Please sign in to comment.