Skip to content

Commit 2aa572f

Browse files
committed
Update global.d.ts
1 parent 8b182af commit 2aa572f

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

global.d.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
import { MongoClient } from 'mongodb';
22

3-
// This is required to make TypeScript treat this file as a module.
4-
export {};
5-
63
declare global {
7-
// Add the _mongoClientPromise to the global namespace
8-
var _mongoClientPromise: Promise<MongoClient> | null;
9-
10-
// Retain the pastes variable you already have
11-
var pastes: Map<string, { title: string; content: string }>;
4+
var _mongoClientPromise: Promise<MongoClient> | undefined;
125
}
6+
7+
export {};

0 commit comments

Comments
 (0)