@nasl/types 0.1.2 → 0.1.3

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
@@ -141,6 +141,7 @@ export interface SlotDeclaration {
141
141
  title: string;
142
142
  description?: string;
143
143
  tsType: string;
144
+ params: Array<Param>;
144
145
  emptyBackground?: string;
145
146
  snippets: Array<ViewBlockWithImage>;
146
147
  }
@@ -257,14 +258,6 @@ export interface DefaultValue {
257
258
  */
258
259
  export type LogicItem = NullLiteral | BooleanLiteral | StringLiteral | NumericLiteral | NewList;
259
260
 
260
- /**
261
- * 类型参数
262
- */
263
- export interface TypeParam {
264
- concept: 'TypeParam';
265
- name: string;
266
- }
267
-
268
261
  /**
269
262
  * 输入参数
270
263
  */
@@ -304,6 +297,14 @@ export interface StructureProperty {
304
297
  jsonName: string;
305
298
  }
306
299
 
300
+ /**
301
+ * 类型参数
302
+ */
303
+ export interface TypeParam {
304
+ concept: 'TypeParam';
305
+ name: string;
306
+ }
307
+
307
308
  /**
308
309
  * 输出参数
309
310
  */
@@ -702,6 +702,12 @@
702
702
  "tsType": {
703
703
  "type": "string"
704
704
  },
705
+ "params": {
706
+ "type": "array",
707
+ "items": {
708
+ "$ref": "#/definitions/Param"
709
+ }
710
+ },
705
711
  "emptyBackground": {
706
712
  "type": "string"
707
713
  },
@@ -717,11 +723,41 @@
717
723
  "name",
718
724
  "title",
719
725
  "tsType",
726
+ "params",
720
727
  "snippets"
721
728
  ],
722
729
  "additionalProperties": false,
723
730
  "description": "插槽"
724
731
  },
732
+ "Param": {
733
+ "type": "object",
734
+ "properties": {
735
+ "concept": {
736
+ "type": "string",
737
+ "const": "Param"
738
+ },
739
+ "name": {
740
+ "type": "string"
741
+ },
742
+ "description": {
743
+ "type": "string"
744
+ },
745
+ "typeAnnotation": {
746
+ "$ref": "#/definitions/TypeAnnotation"
747
+ },
748
+ "defaultValue": {
749
+ "$ref": "#/definitions/DefaultValue"
750
+ }
751
+ },
752
+ "required": [
753
+ "concept",
754
+ "name",
755
+ "description",
756
+ "typeAnnotation"
757
+ ],
758
+ "additionalProperties": false,
759
+ "description": "输入参数"
760
+ },
725
761
  "ViewBlockWithImage": {
726
762
  "type": "object",
727
763
  "properties": {
@@ -819,35 +855,6 @@
819
855
  "additionalProperties": false,
820
856
  "description": "类型参数"
821
857
  },
822
- "Param": {
823
- "type": "object",
824
- "properties": {
825
- "concept": {
826
- "type": "string",
827
- "const": "Param"
828
- },
829
- "name": {
830
- "type": "string"
831
- },
832
- "description": {
833
- "type": "string"
834
- },
835
- "typeAnnotation": {
836
- "$ref": "#/definitions/TypeAnnotation"
837
- },
838
- "defaultValue": {
839
- "$ref": "#/definitions/DefaultValue"
840
- }
841
- },
842
- "required": [
843
- "concept",
844
- "name",
845
- "description",
846
- "typeAnnotation"
847
- ],
848
- "additionalProperties": false,
849
- "description": "输入参数"
850
- },
851
858
  "Return": {
852
859
  "type": "object",
853
860
  "properties": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nasl/types",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "NASL types for TypeScript Declaration",
5
5
  "main": "index.d.ts",
6
6
  "scripts": {