@openframe-org/criteria-set-protocol 1.0.13 → 1.0.15

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.
@@ -35,10 +35,10 @@ type BaseElement<Type extends CriteriaTreeElementType> = {
35
35
  };
36
36
  export type Criterion = BaseElement<'criterion'> & {
37
37
  quality: string;
38
- items: (Task | TaskGroup)[];
38
+ items: TaskGroup[];
39
39
  };
40
40
  export type TaskGroup = BaseElement<'task-group'> & {
41
- items: (Task | TaskGroup)[];
41
+ items: Task[];
42
42
  };
43
43
  export type Task = BaseElement<'task'> & {
44
44
  description?: string;
@@ -73,7 +73,8 @@ export type PointOption = {
73
73
  value: string | number | boolean | null;
74
74
  annotation?: string;
75
75
  };
76
- export type TaskItemValue = string | number | boolean | null | Array<string | number | boolean | null>;
76
+ export type TaskItemScalarValue = string | number | boolean | null;
77
+ export type TaskItemValue = TaskItemScalarValue | Array<TaskItemScalarValue>;
77
78
  export type CriteriaTreeElement = Criterion | TaskGroup | Task | TaskItem;
78
79
  export type CriteriaTreeElementType = 'criterion' | 'task-group' | 'task' | 'task-item';
79
80
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openframe-org/criteria-set-protocol",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "description": "A protocol and tools for defining and working with criteria sets",
5
5
  "private": false,
6
6
  "author": "Andrés Angulo <aa@openframe.org>",