seald / nedb

The JavaScript Database, for Node.js, nw.js, electron and the browser
MIT License
351 stars 32 forks source link

[types] countAsync returns Cursor<Document<number>> #58

Open RobMayer opened 3 months ago

RobMayer commented 3 months ago

awaiting or execAsync'ing the response from countAsync says to return a Document rather than just a number.

the callback version is correct, however.