Skip to content

Return type of update() is incorrect #334

@joewestcott

Description

@joewestcott

In the current version of Monk, v7.3.3 the return type of update() is UpdateWriteOpResult, I think it should be UpdateResult.

monk/index.d.ts

Lines 335 to 339 in 027ab43

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?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions