From 0cc18fa090d64d634bae825558788092d9097d22 Mon Sep 17 00:00:00 2001 From: Ed Bishop Date: Mon, 23 Oct 2017 20:27:08 +0100 Subject: [PATCH] Added indexWait and fixed the return type for get. (#20521) * Fixed the return type for get. Fixed the return type for get as it returns a single result not a cursor. * Update index.d.ts --- types/rethinkdb/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/rethinkdb/index.d.ts b/types/rethinkdb/index.d.ts index f27b91b775..fca73dfdb6 100644 --- a/types/rethinkdb/index.d.ts +++ b/types/rethinkdb/index.d.ts @@ -238,11 +238,12 @@ declare module "rethinkdb" { indexCreate(name: string, index?: ExpressionFunction): Operation; indexDrop(name: string): Operation; indexList(): Operation; + indexWait(name?: string): Operation>; insert(obj: any[], options?: InsertOptions): Operation; insert(obj: any, options?: InsertOptions): Operation; - get(key: string): Sequence; // primary key + get(key: string): Operation; getAll(key: string, index?: Index): Sequence; // without index defaults to primary key getAll(...keys: string[]): Sequence; wait(WaitOptions?: WaitOptions): WaitResult;