Get results are also writeable

This commit is contained in:
Ed Bishop
2017-10-27 12:46:49 +01:00
committed by GitHub
parent 5761cfc6f2
commit 579ed18aaa

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;