fix: caldavToken model typehints
This commit is contained in:
parent
898b22b377
commit
58b0397cec
1 changed files with 4 additions and 3 deletions
|
@ -1,13 +1,14 @@
|
||||||
import AbstractModel from './abstractModel'
|
import AbstractModel from './abstractModel'
|
||||||
|
|
||||||
export default class CaldavTokenModel extends AbstractModel {
|
export default class CaldavTokenModel extends AbstractModel {
|
||||||
id = 0
|
|
||||||
created : undefined | Date = undefined
|
|
||||||
|
|
||||||
constructor(data? : Object) {
|
constructor(data? : Object) {
|
||||||
super(data)
|
super(data)
|
||||||
|
|
||||||
|
/** @type {number} */
|
||||||
|
this.id
|
||||||
|
|
||||||
if (this.created) {
|
if (this.created) {
|
||||||
|
/** @type {Date} */
|
||||||
this.created = new Date(this.created)
|
this.created = new Date(this.created)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue