From eb5f8c0b88f68742132357bd75a8f3c1c008e146 Mon Sep 17 00:00:00 2001 From: Joe Westcott Date: Mon, 5 Apr 2021 14:50:23 +0100 Subject: [PATCH] correct return TS type for update() calls --- index.d.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/index.d.ts b/index.d.ts index 3365147..e5c4acb 100644 --- a/index.d.ts +++ b/index.d.ts @@ -336,36 +336,36 @@ declare module "monk" { query: FilterQuery, update: UpdateQuery | Partial, options?: UpdateOneOptions & { single?: true, multi?: false, replace?: false} - ): Promise; + ): Promise; update( query: FilterQuery, update: UpdateQuery | Partial, options: UpdateOneOptions & { single?: true, multi?: false, replace?: false}, - callback: Callback + callback: Callback ): void; // multi update( query: FilterQuery, update: UpdateQuery | Partial, options?: UpdateManyOptions & ({ single?: false, multi: true, replace?: false} | { single: false, multi?: true, replace?: false}) - ): Promise; + ): Promise; update( query: FilterQuery, update: UpdateQuery | Partial, options: UpdateOneOptions & ({ single?: false, multi: true, replace?: false} | { single: false, multi?: true, replace?: false}), - callback: Callback + callback: Callback ): void; // replace update( query: FilterQuery, update: UpdateQuery | Partial, options?: ReplaceOneOptions & { single?: true, multi?: false, replace: true} - ): Promise; + ): Promise; update( query: FilterQuery, update: UpdateQuery | Partial, options: ReplaceOneOptions & { single?: true, multi?: false, replace: true}, - callback: Callback + callback: Callback ): void; }