forked from vikunja/frontend
Dominik Pschenitschni
96f5f00c07
We used declare which is the wrong use-case for this. See: https://www.typescriptlang.org/docs/handbook/2/classes.html#--strictpropertyinitialization
18 lines
323 B
TypeScript
18 lines
323 B
TypeScript
import AbstractModel from './abstractModel'
|
|
|
|
interface IEmailUpdate extends AbstractModel {
|
|
newEmail: string
|
|
password: string
|
|
}
|
|
|
|
export default class EmailUpdateModel extends AbstractModel implements IEmailUpdate {
|
|
newEmail!: string
|
|
password!: string
|
|
|
|
defaults() {
|
|
return {
|
|
newEmail: '',
|
|
password: '',
|
|
}
|
|
}
|
|
} |