summaryrefslogtreecommitdiffhomepage
path: root/app/lib/enum.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/lib/enum.js')
-rw-r--r--app/lib/enum.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/lib/enum.js b/app/lib/enum.js
index 0655fc4288..1815a551f7 100644
--- a/app/lib/enum.js
+++ b/app/lib/enum.js
@@ -1,5 +1,12 @@
/**
* Creates enum object with keys provided as arguments
+ *
+ * @constructor
+ * @type Enum
+ * @property {bool} isValid({string}) whether key is valid
+ * @param {...string} ... Enum keys
+ * @export
+ * @returns Enum
*/
export default function Enum() {
let object = Object.create({});