bajankristof / nedb-promises

A dead-simple promise wrapper for nedb.
MIT License
298 stars 45 forks source link

typescript interfaces errors #37

Closed ghost closed 3 years ago

ghost commented 3 years ago

The typescript definition for the methods seems to be incorrect for insert when inserting multiple documents.

store.insert<T[]>(docs) seems to have the return type Promise<T[] & Document> when it should actually be Promise<(T & Document)[]>

ghost commented 3 years ago

I'm closing cause it might be a nedb issue more than nedb-promises