我正在尝试将.pre、.method和.static函数应用于我的Mongoose模式。我有以下代码,但我的this要么在错误的上下文中,要么我误解了Schemas。exportinterfaceIUserextendsmongoose.Document{email:string;password:string;firstName:string;lastName:string;comparePassword(password:string,callback:Function):void;}classUserSchema{staticgetschema():mongoose.Schema