From 5388a695f68c0afc6f591dbff087bce2b3edf8ee Mon Sep 17 00:00:00 2001 From: Ethan Setnik Date: Mon, 1 Jul 2019 16:24:55 -0400 Subject: [PATCH] =?UTF-8?q?[@types/mongoose]=20Property=20'disconnected'?= =?UTF-8?q?=20does=20not=20exist=20on=20ty=E2=80=A6=20(#36423)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `STATES` is undefined at runtime since `.d.ts` files are not compiled so enum `ConnectionStates` must be exported. --- types/mongoose/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/mongoose/index.d.ts b/types/mongoose/index.d.ts index c9f09c1522..679e306405 100644 --- a/types/mongoose/index.d.ts +++ b/types/mongoose/index.d.ts @@ -403,7 +403,7 @@ declare module "mongoose" { static STATES: ConnectionStates; } - enum ConnectionStates { + export enum ConnectionStates { disconnected = 0, connected = 1, connecting = 2,