Skip to content

Commit

Permalink
feat: Add TypeScript declaration file for mongoose module
Browse files Browse the repository at this point in the history
This declaration file ensures proper TypeScript support for the mongoose module by re-exporting its types. It improves type safety and developer experience when using mongoose in TypeScript projects.
  • Loading branch information
bryanlundberg committed Feb 24, 2025
1 parent 9babe8c commit ed52a8e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/interfaces/mongoose.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
declare module "mongoose" {
import * as mongoose from "mongoose";
export = mongoose;
}

0 comments on commit ed52a8e

Please sign in to comment.