In the current version of Monk, v7.3.3 the return type of update() is UpdateWriteOpResult, I think it should be UpdateResult.
|
update( |
|
query: FilterQuery<T>, |
|
update: UpdateQuery<T> | Partial<T>, |
|
options?: UpdateOneOptions & { single?: true, multi?: false, replace?: false} |
|
): Promise<UpdateWriteOpResult>; |
(Same with the other update() calls, perhaps?)
In the current version of Monk,
v7.3.3the return type ofupdate()isUpdateWriteOpResult, I think it should beUpdateResult.monk/index.d.ts
Lines 335 to 339 in 027ab43
(Same with the other
update()calls, perhaps?)