From 264808812831e36d181a862bfcdb96caef6b340f Mon Sep 17 00:00:00 2001 From: Valeri Karpov Date: Wed, 31 Mar 2021 13:08:44 -0400 Subject: [PATCH] fix(index.d.ts): add DocumentQuery type for backwards compatibility Fix #10036 --- index.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.d.ts b/index.d.ts index d539e0d8376..31e43707499 100644 --- a/index.d.ts +++ b/index.d.ts @@ -2715,6 +2715,8 @@ declare module 'mongoose' { /** Alias for QueryOptions for backwards compatability. */ type ModelUpdateOptions = QueryOptions; + type DocumentQuery = Query; + /** Backwards support for DefinitelyTyped */ interface HookSyncCallback { (this: T, next: HookNextFunction, docs: any[]): Promise | void;