mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-11-29 17:51:46 +00:00
[rethinkdb] Fixes r.now() return results
This commit is contained in:
@@ -14,6 +14,7 @@ r.connect({ host: "localhost", port: 28015 }, function(err, conn) {
|
||||
users.filter(function(doc?) {
|
||||
return doc("henry").eq("bob");
|
||||
})
|
||||
.filter(r.row("updatedAt").default(0).lt(r.now().sub(1000)))
|
||||
.between("james", "beth")
|
||||
.limit(4)
|
||||
.run(conn, function(err, cursor) {
|
||||
|
||||
Vendored
+1
-1
@@ -47,7 +47,7 @@ declare module "rethinkdb" {
|
||||
export function row(name: string): Expression<any>;
|
||||
export function expr(stuff: any): Expression<any>;
|
||||
|
||||
export function now(): Time;
|
||||
export function now(): Expression<Time>;
|
||||
|
||||
// Control Structures
|
||||
export function branch(test: Expression<boolean>, trueBranch: Expression<any>, falseBranch: Expression<any>): Expression<any>;
|
||||
|
||||
Reference in New Issue
Block a user