Closed ghost closed 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)[]>
store.insert<T[]>(docs)
Promise<T[] & Document>
Promise<(T & Document)[]>
I'm closing cause it might be a nedb issue more than nedb-promises
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 typePromise<T[] & Document>
when it should actually bePromise<(T & Document)[]>