fix: caldavToken model typehints

This commit is contained in:
kolaente 2022-04-02 17:34:58 +02:00
parent 898b22b377
commit 58b0397cec
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 4 additions and 3 deletions

View File

@ -1,13 +1,14 @@
import AbstractModel from './abstractModel'
export default class CaldavTokenModel extends AbstractModel {
id = 0
created : undefined | Date = undefined
constructor(data? : Object) {
super(data)
/** @type {number} */
this.id
if (this.created) {
/** @type {Date} */
this.created = new Date(this.created)
}
}