nestjs / nest

A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript 🚀
https://nestjs.com
MIT License
67.76k stars 7.64k forks source link

mongoose types #3352

Closed albesdev closed 5 years ago

albesdev commented 5 years ago

does @types/mongoose needs upgrade to be used with this nestjs example?

I get this error:

interface Device Interface 'Device' incorrectly extends interface 'Document'. Types of property 'model' are incompatible. Type 'string' is not assignable to type '<T extends Document>(name: string) => Model<T, {}>'.ts(2430) Peek Problem No quick fixes available

kamilmysliwiec commented 5 years ago

Please, use our Discord channel (support) for such questions. We are using GitHub to track bugs, feature requests, and potential improvements.

lock[bot] commented 4 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.