mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 23:10:29 +00:00
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
This commit is contained in:
Vendored
+2
-1
@@ -238,11 +238,12 @@ declare module "rethinkdb" {
|
||||
indexCreate(name: string, index?: ExpressionFunction<any>): Operation<CreateResult>;
|
||||
indexDrop(name: string): Operation<DropResult>;
|
||||
indexList(): Operation<string[]>;
|
||||
indexWait(name?: string): Operation<Array<{ index: string, ready: true, function: number, multi: boolean, geo: boolean, outdated: boolean }>>;
|
||||
|
||||
insert(obj: any[], options?: InsertOptions): Operation<WriteResult>;
|
||||
insert(obj: any, options?: InsertOptions): Operation<WriteResult>;
|
||||
|
||||
get(key: string): Sequence; // primary key
|
||||
get<TObjectType extends object>(key: string): Operation<TObjectType | null>;
|
||||
getAll(key: string, index?: Index): Sequence; // without index defaults to primary key
|
||||
getAll(...keys: string[]): Sequence;
|
||||
wait(WaitOptions?: WaitOptions): WaitResult;
|
||||
|
||||
Reference in New Issue
Block a user