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
21 lines
343 B
TypeScript
21 lines
343 B
TypeScript
import AbstractModel from './abstractModel'
|
|
|
|
export interface ITotp extends AbstractModel {
|
|
secret: string
|
|
enabled: boolean
|
|
url: string
|
|
}
|
|
|
|
export default class TotpModel extends AbstractModel implements ITotp{
|
|
secret!: string
|
|
enabled!: boolean
|
|
url!: string
|
|
|
|
defaults() {
|
|
return {
|
|
secret: '',
|
|
enabled: false,
|
|
url: '',
|
|
}
|
|
}
|
|
} |