Merge pull request #21070 from mredbishop/patch-5

Get results are also writeable
This commit is contained in:
Daniel Rosenwasser
2017-11-10 20:39:41 -08:00
committed by GitHub
+1 -1
View File
@@ -244,7 +244,7 @@ declare module "rethinkdb" {
insert(obj: any[], options?: InsertOptions): Operation<WriteResult>;
insert(obj: any, options?: InsertOptions): Operation<WriteResult>;
get<TObjectType extends object>(key: string): Operation<TObjectType | null>;
get<TObjectType extends object>(key: string): Operation<TObjectType | null> & Writeable;
getAll(key: string, index?: Index): Sequence; // without index defaults to primary key
getAll(...keys: string[]): Sequence;
wait(WaitOptions?: WaitOptions): WaitResult;