nedb-promise-ts
Advanced tools
Comparing version 0.1.0 to 0.2.0
@@ -18,2 +18,3 @@ /// <reference types="nedb" /> | ||
getCandidates(query: any): void; | ||
insert<T>(newDoc: any): Promise<T>; | ||
count(query: any): Promise<{}>; | ||
@@ -20,0 +21,0 @@ find(query: any, projection?: any): Promise<{}>; |
@@ -49,2 +49,5 @@ "use strict"; | ||
} | ||
insert(newDoc) { | ||
return this.promisify(this.original.insert.bind(this, newDoc)); | ||
} | ||
// TODO: Support cursor style. | ||
@@ -51,0 +54,0 @@ count(query) { |
{ | ||
"name": "nedb-promise-ts", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
8239
139