pacc 3.1.3 → 3.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pacc",
3
- "version": "3.1.3",
3
+ "version": "3.1.5",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
package/src/attribute.mjs CHANGED
@@ -2,14 +2,13 @@
2
2
  * @typedef {Object} AttributeDefinition
3
3
  *
4
4
  * @property {string} type
5
- * @property {string} description
6
5
  * @property {boolean} isKey
7
6
  * @property {boolean} writable
8
7
  * @property {boolean} mandatory
9
8
  * @property {boolean} [private] should the value be shown
10
9
  * @property {string} [depends] name of an attribute we depend on
11
10
  * @property {string[]} additionalAttributes extra attributes that are present in case our attribute is set
12
- * @property {string} description
11
+ * @property {string} [description| human readable
13
12
  * @property {any} [default] the default value
14
13
  * @property {Function} [set] set the value
15
14
  * @property {Function} [get] get the value can be used to calculate default values
@@ -25,7 +25,6 @@ export function getAttributeAndOperator(object: any, expression: string): [any,
25
25
  export * from "./tokens.mjs";
26
26
  export type AttributeDefinition = {
27
27
  type: string;
28
- description: string;
29
28
  isKey: boolean;
30
29
  writable: boolean;
31
30
  mandatory: boolean;
@@ -41,6 +40,10 @@ export type AttributeDefinition = {
41
40
  * extra attributes that are present in case our attribute is set
42
41
  */
43
42
  additionalAttributes: string[];
43
+ /**
44
+ * | human readable
45
+ */
46
+ description?: string;
44
47
  /**
45
48
  * the default value
46
49
  */