diff --git a/src/models/caldavToken.ts b/src/models/caldavToken.ts index 9ecf2232..2f8f1d54 100644 --- a/src/models/caldavToken.ts +++ b/src/models/caldavToken.ts @@ -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) } }