mongoose: Fix typo for static methods

This commit is contained in:
Mykola Radchenko
2017-12-19 20:43:41 -08:00
parent 089d45a309
commit 1ff7302d0f

View File

@@ -145,7 +145,7 @@ interface IUserModel extends Model<IUserDocument> {
static1: () => string;
}
var UserModel: IUserModel = model<IUser, IUserModel>('User', UserSchema);
var UserModel: IUserModel = model<IUserDocument, IUserModel>('User', UserSchema);
UserModel.static1(); // static methods are available
```
[top](#mongoosejs-typescript-docs)