From 7393479f3336663aa87e7ba0de5fddd05aa613d0 Mon Sep 17 00:00:00 2001 From: Valeri Karpov Date: Fri, 11 Mar 2022 17:25:56 -0500 Subject: [PATCH] test: fix tests re: #11503 --- types/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/index.d.ts b/types/index.d.ts index b81e1917847..87a6632d48e 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -1881,7 +1881,7 @@ declare module 'mongoose' { polygon(path: string, ...coordinatePairs: number[][]): this; /** Specifies paths which should be populated with other documents. */ - populate(path: string[], select?: string | any, model?: string | Model, match?: any): QueryWithHelpers, DocType, THelpers, RawDocType>; + populate(path: string | string[], select?: string | any, model?: string | Model, match?: any): QueryWithHelpers, DocType, THelpers, RawDocType>; populate(options: PopulateOptions | (PopulateOptions | string)[]): QueryWithHelpers, DocType, THelpers, RawDocType>; /** Get/set the current projection (AKA fields). Pass `null` to remove the current projection. */