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 @@ interface IEmailUpdate extends AbstractModel {
|
||||
}
|
||||
|
||||
export default class EmailUpdateModel extends AbstractModel implements IEmailUpdate {
|
||||
declare newEmail: string
|
||||
declare password: string
|
||||
newEmail!: string
|
||||
password!: string
|
||||
|
||||
defaults() {
|
||||
return {
|
||||
|
Reference in New Issue
Block a user