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
|
|
@ -7,9 +7,9 @@ export interface ITotp extends AbstractModel {
|
|||
}
|
||||
|
||||
export default class TotpModel extends AbstractModel implements ITotp{
|
||||
declare secret: string
|
||||
declare enabled: boolean
|
||||
declare url: string
|
||||
secret!: string
|
||||
enabled!: boolean
|
||||
url!: string
|
||||
|
||||
defaults() {
|
||||
return {
|
||||
|
|
|
|||
Reference in a new issue