From ae819ccde9c9977cf3b628d18991c5b0bfb5c678 Mon Sep 17 00:00:00 2001 From: Thiago Kisaki <66492727+thiagokisaki@users.noreply.github.com> Date: Thu, 29 Jul 2021 09:49:18 -0300 Subject: [PATCH] fix(index.d.ts): fix `debug` type in `MongooseOptions` --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 9e0ad99ff39..de06996f8f8 100644 --- a/index.d.ts +++ b/index.d.ts @@ -188,7 +188,7 @@ declare module 'mongoose' { debug?: | boolean | { color?: boolean; shell?: boolean } - | WritableStream + | stream.Writable | ((collectionName: string, methodName: string, ...methodArgs: any[]) => void); /** If set, attaches [maxTimeMS](https://docs.mongodb.com/manual/reference/operator/meta/maxTimeMS/) to every query */