diff --git a/types/document.d.ts b/types/document.d.ts index 44c74022141..703d54b885d 100644 --- a/types/document.d.ts +++ b/types/document.d.ts @@ -26,7 +26,7 @@ declare module 'mongoose' { __v?: any; /** Assert that a given path or paths is populated. Throws an error if not populated. */ - $assertPopulated(paths: string | string[]): Omit & Paths; + $assertPopulated(paths: string | string[]): Omit & Paths; /* Get all subdocs (by bfs) */ $getAllSubdocs(): Document[];