Currently, I am working on integrating my client class with a typegoose model named Member
. Although I know how to use it, I am facing difficulties in setting up the types and intellisense correctly. The class is exported as MemberClass
, and I need assistance in filling in the missing pieces of code.
// imports...
// extending another client from a package
export class Client extends Client {
memberData: // Looking for the correct type here
constructor(){
this.memberData = // Unsure what should go here?
}
async test(){
console.log(this.memberData.findOne(...)) // Is this syntax correct?
}
}
I would appreciate any guidance or suggestions! If needed, I can share the complete files for reference.