Skip to content

Commit

Permalink
Add findOne method to TypeScript declaration file
Browse files Browse the repository at this point in the history
  • Loading branch information
erikolson186 committed Sep 12, 2017
1 parent e7222d5 commit 3b9d88c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zangodb",
"version": "1.0.6",
"version": "1.0.7",
"description": "MongoDB-like interface for HTML5 IndexedDB",
"main": "./build/src/index.js",
"typings": "./src/zangodb.d.ts",
Expand Down
2 changes: 2 additions & 0 deletions src/zangodb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ declare module "zangodb" {

aggregate(pipeline: Object[]): Cursor;
find(expr: Object, projection_spec?: Object): Cursor;
findOne(expr: Object, projection_spec?: Object,
cb?: ResultCallback<Object>): Promise<Object>;
insert(docs: Object|Object[], cb?: Callback): Promise<void>;
remove(expr: Object, cb?: Callback): Promise<void>;
update(expr: Object, spec: Object, cb?: Callback): Promise<void>;
Expand Down

0 comments on commit 3b9d88c

Please sign in to comment.