fix: use definite assignment assertion operator
We used declare which is the wrong use-case for this. See: https://www.typescriptlang.org/docs/handbook/2/classes.html#--strictpropertyinitialization
This commit is contained in:
@ -6,8 +6,8 @@ export interface IPasswordUpdate extends AbstractModel {
|
||||
}
|
||||
|
||||
export default class PasswordUpdateModel extends AbstractModel implements IPasswordUpdate {
|
||||
declare newPassword: string
|
||||
declare oldPassword: string
|
||||
newPassword!: string
|
||||
oldPassword!: string
|
||||
|
||||
defaults() {
|
||||
return {
|
||||
|
Reference in New Issue
Block a user