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;