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:
parent
041a1a4cc0
commit
96f5f00c07
33 changed files with 130 additions and 130 deletions
|
|
@ -14,14 +14,14 @@ export interface IUserSettings extends AbstractModel {
|
|||
}
|
||||
|
||||
export default class UserSettingsModel extends AbstractModel implements IUserSettings {
|
||||
declare name: string
|
||||
declare emailRemindersEnabled: boolean
|
||||
declare discoverableByName: boolean
|
||||
declare discoverableByEmail: boolean
|
||||
declare overdueTasksRemindersEnabled: boolean
|
||||
declare defaultListId: undefined | IList['id']
|
||||
declare weekStart: 0 | 1 | 2 | 3 | 4 | 5 | 6
|
||||
declare timezone: string
|
||||
name!: string
|
||||
emailRemindersEnabled!: boolean
|
||||
discoverableByName!: boolean
|
||||
discoverableByEmail!: boolean
|
||||
overdueTasksRemindersEnabled!: boolean
|
||||
defaultListId!: undefined | IList['id']
|
||||
weekStart!: 0 | 1 | 2 | 3 | 4 | 5 | 6
|
||||
timezone!: string
|
||||
|
||||
defaults() {
|
||||
return {
|
||||
|
|
|
|||
Reference in a new issue