add relevant type information

This commit is contained in:
Kevin Jahns 2019-06-05 14:53:00 +02:00
parent 775f6eed1d
commit 7e7c9d5b11
2 changed files with 6 additions and 0 deletions

View File

@ -44,6 +44,9 @@ export class ContentType {
* @param {AbstractType<YEvent>} type
*/
constructor (type) {
/**
* @type {AbstractType<any>}
*/
this.type = type
}
/**

View File

@ -138,6 +138,9 @@ export class Item extends AbstractStruct {
* @type {Item | null}
*/
this.redone = null
/**
* @type {AbstractContent}
*/
this.content = content
this.length = content.getLength()
this.countable = content.isCountable()