jalantechnologies / boilerplate-mern

Boilerplate code for Node projects in TypeScript
5 stars 20 forks source link

fix: Mongoose schema type mismatch lint error in application repository #162

Closed KrishnaVAMSI-2003 closed 1 week ago

KrishnaVAMSI-2003 commented 1 week ago

Resolve a TypeScript lint error related to the unsafe assignment of a Mongoose schema to a generic repository function. The issue is occurring because the schema is not strongly typed, causing a type mismatch in the ApplicationRepository function. refer: https://github.com/jalantechnologies/boilerplate-mern/pull/81/files#r1472414021