mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-02 19:43:20 +08:00
Get results are also writeable
This commit is contained in:
2
types/rethinkdb/index.d.ts
vendored
2
types/rethinkdb/index.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user