From 64a0051774e33b25fca54ab6e80601e194106666 Mon Sep 17 00:00:00 2001 From: hasezoey Date: Fri, 19 Aug 2022 12:03:56 +0200 Subject: [PATCH] fix(types): sync single-generic-no-constraint "model" between "index.d.ts" and "connection.d.ts" --- types/connection.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/connection.d.ts b/types/connection.d.ts index 28d2dd73dbb..087728a9634 100644 --- a/types/connection.d.ts +++ b/types/connection.d.ts @@ -154,7 +154,7 @@ declare module 'mongoose' { collection?: string, options?: CompileModelOptions ): U; - model(name: string, schema?: Schema, collection?: string, options?: CompileModelOptions): Model; + model(name: string, schema?: Schema | Schema, collection?: string, options?: CompileModelOptions): Model; /** Returns an array of model names created on this connection. */ modelNames(): Array;