fix: use HydratedDocument to resolve Document type conflict#8
fix: use HydratedDocument to resolve Document type conflict#8Daksh-Mehra wants to merge 1 commit intoadrianhajdin:mainfrom
Conversation
Replaced extends Document with HydratedDocument<T> to fix TypeScript property conflicts (e.g., 'location') and align with modern Mongoose typing.
|
@Daksh-Mehra is attempting to deploy a commit to the JS Mastery Pro Team on Vercel. A member of the Team first needs to authorize it. |
📝 WalkthroughWalkthroughUnified typing update across 9 database model files replacing interface-based document types with HydratedDocument type aliases. Each file adds HydratedDocument to mongoose imports and converts its document type declaration from an interface extending Document to a type alias. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 🧹 Recent nitpick comments
Tip Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Replaced extends Document with HydratedDocument to fix TypeScript property conflicts (e.g., 'location') and align with modern Mongoose typing.
Summary by CodeRabbit