fix: caldavToken model typehints

This commit is contained in:
kolaente 2022-04-02 17:34:58 +02:00
parent 898b22b377
commit 58b0397cec
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

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)
}
}