From 5c9d8bb8b78ad4eb9d482e96cf5804328c090a82 Mon Sep 17 00:00:00 2001 From: Amit Beckenstein Date: Mon, 1 Apr 2024 18:58:45 +0300 Subject: [PATCH] Fix module export `export =` is the correct TS equivalent of `module.exports` in CommonJS --- types.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types.d.ts b/types.d.ts index 2144bc7..9c20746 100644 --- a/types.d.ts +++ b/types.d.ts @@ -59,4 +59,4 @@ declare const mockingoose: Proxy; * @param {string | mongoose.Model} model either a string model name, or a mongoose.Model instance */ declare const mockModel: (model: string | mongoose.Model) => Mock; -export default mockingoose; \ No newline at end of file +export = mockingoose;