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
need to be type correctly to handle any Model that gets passed in. Consult Mongoose for the typing
References
current ARepository base class:
// TODO: the typings for _model are all messed up and not inferring correctly...exportabstractclassARepository{publicreadonly_model: Model<any>;/** * @summary This Abstract base class will have the core Read/Write operations for req/res * @param typeof User to infer mongoose model type */constructor(model: Model<any>){this._model=model;}// TODO: Generic Repository need param types defined...// async create(item: T): Promise<boolean> {// throw new Error("Method not implemented.");// }
The text was updated successfully, but these errors were encountered:
Describe the Problem
Currently, the model controllers do not inherit from the base class which will define the 5-6 basic crud operations.
Describe the Proposed Solution
and
need to be type correctly to handle any Model that gets passed in. Consult Mongoose for the typing
References
current ARepository base class:
The text was updated successfully, but these errors were encountered: