@nasl/types 0.1.7-beta.3 → 0.1.7

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/nasl.ui.ast.d.ts CHANGED
@@ -34,6 +34,10 @@ export interface EnumSelectSetter {
34
34
  * 枚举选项列表
35
35
  */
36
36
  options: Array<SetterOption>;
37
+ /**
38
+ * 是否多选
39
+ */
40
+ multiple: boolean;
37
41
  }
38
42
 
39
43
  /**
@@ -45,6 +49,10 @@ export interface CapsulesSetter {
45
49
  * 枚举选项列表
46
50
  */
47
51
  options: Array<SetterOption>;
52
+ /**
53
+ * 是否多选
54
+ */
55
+ multiple: boolean;
48
56
  }
49
57
 
50
58
  /**
@@ -650,6 +658,10 @@ export interface TypeParam {
650
658
  * 类型名称
651
659
  */
652
660
  name: string;
661
+ /**
662
+ * 展示名称
663
+ */
664
+ displayName?: string;
653
665
  }
654
666
 
655
667
  /**
@@ -327,11 +327,16 @@
327
327
  "$ref": "#/definitions/SetterOption"
328
328
  },
329
329
  "description": "枚举选项列表"
330
+ },
331
+ "multiple": {
332
+ "type": "boolean",
333
+ "description": "是否多选"
330
334
  }
331
335
  },
332
336
  "required": [
333
337
  "concept",
334
- "options"
338
+ "options",
339
+ "multiple"
335
340
  ],
336
341
  "additionalProperties": false,
337
342
  "description": "枚举选择设置器"
@@ -389,11 +394,16 @@
389
394
  "$ref": "#/definitions/SetterOption"
390
395
  },
391
396
  "description": "枚举选项列表"
397
+ },
398
+ "multiple": {
399
+ "type": "boolean",
400
+ "description": "是否多选"
392
401
  }
393
402
  },
394
403
  "required": [
395
404
  "concept",
396
- "options"
405
+ "options",
406
+ "multiple"
397
407
  ],
398
408
  "additionalProperties": false,
399
409
  "description": "胶囊设置器"
@@ -969,6 +979,10 @@
969
979
  "name": {
970
980
  "type": "string",
971
981
  "description": "类型名称"
982
+ },
983
+ "displayName": {
984
+ "type": "string",
985
+ "description": "展示名称"
972
986
  }
973
987
  },
974
988
  "required": [
@@ -34,6 +34,10 @@ declare namespace nasl.ui {
34
34
  * 枚举选项列表
35
35
  */
36
36
  options: Array<SetterOption<T, K>>;
37
+ /**
38
+ * 是否多选
39
+ */
40
+ multiple: boolean;
37
41
  }
38
42
 
39
43
  /**
@@ -45,6 +49,10 @@ declare namespace nasl.ui {
45
49
  * 枚举选项列表
46
50
  */
47
51
  options: Array<SetterOption<T, K>>;
52
+ /**
53
+ * 是否多选
54
+ */
55
+ multiple: boolean;
48
56
  }
49
57
 
50
58
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nasl/types",
3
- "version": "0.1.7-beta.3",
3
+ "version": "0.1.7",
4
4
  "description": "NASL types for TypeScript Declaration",
5
5
  "main": "index.d.ts",
6
6
  "scripts": {