8000 Return type of update() is incorrect · Issue #334 · Automattic/monk · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Return type of update() is incorrect #334
Open
@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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0