We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 23b95c9 + 4220887 commit 28fd1b6Copy full SHA for 28fd1b6
test/types/mongo.test.ts
@@ -0,0 +1,4 @@
1
+import * as mongoose from 'mongoose';
2
+import { expectType } from 'tsd';
3
+
4
+import GridFSBucket = mongoose.mongo.GridFSBucket;
types/index.d.ts
@@ -109,7 +109,7 @@ declare module 'mongoose' {
109
export function setDriver(driver: any): Mongoose;
110
111
/** The node-mongodb-native driver Mongoose uses. */
112
- export const mongo: typeof mongodb;
+ export { mongodb as mongo };
113
114
/** Declares a global plugin executed on all Schemas. */
115
export function plugin(fn: (schema: Schema, opts?: any) => void, opts?: any): Mongoose;
0 commit comments