mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-22 20:37:58 +08:00
mongoose: Fix typo for static methods
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user