You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by huge689 October 14, 2022
code:
UserSchema.path('hashed_password').validate(function (v) {
if (this._password && this._password.length < 8) {
this.invalidate('password', 'Password must be at least 8 characters.');
}
});
error:
any
'this' implicitly has type 'any' because it does not have a type annotation.ts(2683)
user.model.ts(57, 45): An outer value of 'this' is shadowed by this container.
'this' implicitly has type 'any' because it does not have a type annotation.ts(2683)
user.model.ts(57, 45): An outer value of 'this' is shadowed by this container.
'this' implicitly has type 'any' because it does not have a type annotation.ts(2683)
The text was updated successfully, but these errors were encountered:
Discussed in #12557
Originally posted by huge689 October 14, 2022
code:
error:
any
'this' implicitly has type 'any' because it does not have a type annotation.ts(2683)
user.model.ts(57, 45): An outer value of 'this' is shadowed by this container.
'this' implicitly has type 'any' because it does not have a type annotation.ts(2683)
user.model.ts(57, 45): An outer value of 'this' is shadowed by this container.
'this' implicitly has type 'any' because it does not have a type annotation.ts(2683)
The text was updated successfully, but these errors were encountered: