mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Added missing insert overload (#38026)
This commit is contained in:
parent
1978489d1f
commit
21e7a33c41
3
types/nedb/index.d.ts
vendored
3
types/nedb/index.d.ts
vendored
@ -77,10 +77,11 @@ declare class Nedb<G = any> extends EventEmitter {
|
||||
getCandidates(query: any): void;
|
||||
|
||||
/**
|
||||
* Insert a new document
|
||||
* Insert one or more new documents
|
||||
* @param cb Optional callback, signature: err, insertedDoc
|
||||
*/
|
||||
insert<T extends G>(newDoc: T, cb?: (err: Error, document: T) => void): void;
|
||||
insert<T extends G>(newDocs: T[], cb?: (err: Error, documents: T[]) => void): void;
|
||||
|
||||
/**
|
||||
* Count all documents matching the query
|
||||
|
||||
Loading…
Reference in New Issue
Block a user