Skip to content

Commit 1aa341f

Browse files
authored
added type to clientPromise in with-mongodb/lib (vercel#40339)
## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have helpful link attached, see `contributing.md` ## Documentation / Examples - [ ] Make sure the linting passes by running `pnpm lint` - [ ] The examples guidelines are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing.md#adding-examples)
1 parent 45d68ae commit 1aa341f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/with-mongodb/lib/mongodb.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const uri = process.env.MONGODB_URI
88
const options = {}
99

1010
let client
11-
let clientPromise
11+
let clientPromise: Promise<MongoClient>
1212

1313
if (!process.env.MONGODB_URI) {
1414
throw new Error('Please add your Mongo URI to .env.local')

0 commit comments

Comments
 (0)