From 7e7c9d5b1107211c9e2668b38265cc898ccafe4b Mon Sep 17 00:00:00 2001 From: Kevin Jahns Date: Wed, 5 Jun 2019 14:53:00 +0200 Subject: [PATCH] add relevant type information --- src/structs/ContentType.js | 3 +++ src/structs/Item.js | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/structs/ContentType.js b/src/structs/ContentType.js index 6d2f4fcb..fb0a69e4 100644 --- a/src/structs/ContentType.js +++ b/src/structs/ContentType.js @@ -44,6 +44,9 @@ export class ContentType { * @param {AbstractType} type */ constructor (type) { + /** + * @type {AbstractType} + */ this.type = type } /** diff --git a/src/structs/Item.js b/src/structs/Item.js index aafd6c0c..1675413b 100644 --- a/src/structs/Item.js +++ b/src/structs/Item.js @@ -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()