You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
mongoose Document should be a class not an interface #6957
The mongoose.d.ts Document should be a class and not an interface, since mongoose has an implementation for Document (lib/document.js).
export interface Document { ... }
should be export class Document { ... }
Use Case:
I try to implement a generic Repository<T extends Document>
Then i create a class Model extends Document { ... }
Now according (with export interface Document { ... }) i have to implement all functions which are already provided by mongoose.
With export class Document { ... } they are already provided by mongoose like it is the case
Activity
vvakame commentedon Dec 1, 2015
please send a pull request with document url.
Updates to Mongoose 4.5.x (DefinitelyTyped#10084)