From c90353de529ae4e625dab0ae5da6dc031c77abe8 Mon Sep 17 00:00:00 2001 From: Michael Kielpinski Date: Wed, 7 Sep 2022 22:59:38 -0700 Subject: [PATCH] added type to clientPromise in lib --- examples/with-mongodb/lib/mongodb.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/with-mongodb/lib/mongodb.ts b/examples/with-mongodb/lib/mongodb.ts index 7aaf63e04cec..9397929118bb 100644 --- a/examples/with-mongodb/lib/mongodb.ts +++ b/examples/with-mongodb/lib/mongodb.ts @@ -8,7 +8,7 @@ const uri = process.env.MONGODB_URI const options = {} let client -let clientPromise +let clientPromise: Promise if (!process.env.MONGODB_URI) { throw new Error('Please add your Mongo URI to .env.local')