@nasl/types 0.1.7-beta → 0.1.7-beta.2
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.core.d.ts +0 -1
- package/nasl.ui.ast.d.ts +358 -3
- package/nasl.ui.ast.schema.json +217 -108
- package/nasl.ui.d.ts +14 -1
- package/nasl.ui.options.d.ts +199 -4
- package/package.json +1 -1
package/nasl.core.d.ts
CHANGED
package/nasl.ui.ast.d.ts
CHANGED
|
@@ -11,6 +11,9 @@ export type BaseSetter = InputSetter | SwitchSetter | EnumSelectSetter | Capsule
|
|
|
11
11
|
*/
|
|
12
12
|
export interface InputSetter {
|
|
13
13
|
concept: 'InputSetter';
|
|
14
|
+
/**
|
|
15
|
+
* 占位文本
|
|
16
|
+
*/
|
|
14
17
|
placeholder?: string;
|
|
15
18
|
}
|
|
16
19
|
|
|
@@ -27,6 +30,9 @@ export interface SwitchSetter {
|
|
|
27
30
|
*/
|
|
28
31
|
export interface EnumSelectSetter {
|
|
29
32
|
concept: 'EnumSelectSetter';
|
|
33
|
+
/**
|
|
34
|
+
* 枚举选项列表
|
|
35
|
+
*/
|
|
30
36
|
options: Array<SetterOption>;
|
|
31
37
|
}
|
|
32
38
|
|
|
@@ -35,6 +41,9 @@ export interface EnumSelectSetter {
|
|
|
35
41
|
*/
|
|
36
42
|
export interface CapsulesSetter {
|
|
37
43
|
concept: 'CapsulesSetter';
|
|
44
|
+
/**
|
|
45
|
+
* 枚举选项列表
|
|
46
|
+
*/
|
|
38
47
|
options: Array<SetterOption>;
|
|
39
48
|
}
|
|
40
49
|
|
|
@@ -43,10 +52,25 @@ export interface CapsulesSetter {
|
|
|
43
52
|
*/
|
|
44
53
|
export interface NumberInputSetter {
|
|
45
54
|
concept: 'NumberInputSetter';
|
|
55
|
+
/**
|
|
56
|
+
* 按钮位置
|
|
57
|
+
*/
|
|
46
58
|
placement?: string;
|
|
59
|
+
/**
|
|
60
|
+
* 最小值
|
|
61
|
+
*/
|
|
47
62
|
min?: number;
|
|
63
|
+
/**
|
|
64
|
+
* 最大值
|
|
65
|
+
*/
|
|
48
66
|
max?: number;
|
|
67
|
+
/**
|
|
68
|
+
* 精度
|
|
69
|
+
*/
|
|
49
70
|
precision?: number;
|
|
71
|
+
/**
|
|
72
|
+
* 占位文本
|
|
73
|
+
*/
|
|
50
74
|
placeholder?: string;
|
|
51
75
|
}
|
|
52
76
|
|
|
@@ -55,6 +79,9 @@ export interface NumberInputSetter {
|
|
|
55
79
|
*/
|
|
56
80
|
export interface IconSetter {
|
|
57
81
|
concept: 'IconSetter';
|
|
82
|
+
/**
|
|
83
|
+
* 图标标题
|
|
84
|
+
*/
|
|
58
85
|
title?: string;
|
|
59
86
|
}
|
|
60
87
|
|
|
@@ -79,22 +106,70 @@ export interface PropertySelectSetter {
|
|
|
79
106
|
*/
|
|
80
107
|
export interface ViewComponentDeclaration {
|
|
81
108
|
concept: 'ViewComponentDeclaration';
|
|
109
|
+
/**
|
|
110
|
+
* 页面组件名称
|
|
111
|
+
*/
|
|
82
112
|
name: string;
|
|
113
|
+
/**
|
|
114
|
+
* 页面组件中划线名称
|
|
115
|
+
*/
|
|
83
116
|
kebabName: string;
|
|
117
|
+
/**
|
|
118
|
+
* 页面组件标题
|
|
119
|
+
*/
|
|
84
120
|
title: string;
|
|
121
|
+
/**
|
|
122
|
+
* 所在分组
|
|
123
|
+
*/
|
|
85
124
|
group: string;
|
|
125
|
+
/**
|
|
126
|
+
* 页面组件图标
|
|
127
|
+
*/
|
|
86
128
|
icon: string;
|
|
129
|
+
/**
|
|
130
|
+
* 页面组件描述
|
|
131
|
+
*/
|
|
87
132
|
description?: string;
|
|
133
|
+
/**
|
|
134
|
+
* 关于 TS 的 typeParams
|
|
135
|
+
*/
|
|
88
136
|
tsTypeParams?: string;
|
|
137
|
+
/**
|
|
138
|
+
* 组件属性列表
|
|
139
|
+
*/
|
|
89
140
|
props: Array<PropDeclaration>;
|
|
141
|
+
/**
|
|
142
|
+
* 可访问的组件属性列表
|
|
143
|
+
*/
|
|
90
144
|
readableProps: Array<PropDeclaration>;
|
|
145
|
+
/**
|
|
146
|
+
* 组件事件列表
|
|
147
|
+
*/
|
|
91
148
|
events: Array<EventDeclaration>;
|
|
149
|
+
/**
|
|
150
|
+
* 插槽列表
|
|
151
|
+
*/
|
|
92
152
|
slots: Array<SlotDeclaration>;
|
|
153
|
+
/**
|
|
154
|
+
* 逻辑列表
|
|
155
|
+
*/
|
|
93
156
|
methods: Array<LogicDeclaration>;
|
|
157
|
+
/**
|
|
158
|
+
* 页面组件列表
|
|
159
|
+
*/
|
|
94
160
|
children: Array<ViewComponentDeclaration>;
|
|
161
|
+
/**
|
|
162
|
+
* 页面组件的代码块列表
|
|
163
|
+
*/
|
|
95
164
|
blocks: Array<ViewBlockWithImage>;
|
|
165
|
+
/**
|
|
166
|
+
* 主题变量
|
|
167
|
+
*/
|
|
96
168
|
themeVariables: Array<ThemeVariable>;
|
|
97
|
-
|
|
169
|
+
/**
|
|
170
|
+
* 国际化配置列表
|
|
171
|
+
*/
|
|
172
|
+
i18nMap?: Map<string, Map<string, string>>;
|
|
98
173
|
}
|
|
99
174
|
|
|
100
175
|
/**
|
|
@@ -102,24 +177,97 @@ export interface ViewComponentDeclaration {
|
|
|
102
177
|
*/
|
|
103
178
|
export interface PropDeclaration {
|
|
104
179
|
concept: 'PropDeclaration';
|
|
180
|
+
/**
|
|
181
|
+
* 组件属性名称
|
|
182
|
+
*/
|
|
105
183
|
name: string;
|
|
184
|
+
/**
|
|
185
|
+
* 组件属性标题
|
|
186
|
+
*/
|
|
106
187
|
title: string;
|
|
188
|
+
/**
|
|
189
|
+
* 组件属性分组
|
|
190
|
+
*/
|
|
107
191
|
group: '基础信息' | '数据属性' | '主要属性' | '交互属性' | '状态属性' | '样式属性' | '工具属性';
|
|
192
|
+
/**
|
|
193
|
+
* 组件属性图标
|
|
194
|
+
*/
|
|
108
195
|
icon?: string;
|
|
196
|
+
/**
|
|
197
|
+
* 组件属性描述
|
|
198
|
+
*/
|
|
109
199
|
description?: string;
|
|
200
|
+
/**
|
|
201
|
+
* 类型
|
|
202
|
+
*
|
|
203
|
+
* 直接写 TS 类型
|
|
204
|
+
*/
|
|
110
205
|
tsType: string;
|
|
206
|
+
/**
|
|
207
|
+
* 是否支持双向绑定
|
|
208
|
+
*/
|
|
111
209
|
sync: boolean;
|
|
210
|
+
/**
|
|
211
|
+
* 是否将任意类型隐式转换成String
|
|
212
|
+
*
|
|
213
|
+
* 仅在属性类型为 string(不包括字符串枚举)的情况下,且 sync 为 falsy 时可配置
|
|
214
|
+
*/
|
|
215
|
+
implicitToString?: boolean;
|
|
216
|
+
/**
|
|
217
|
+
* 工具提示链接
|
|
218
|
+
*/
|
|
112
219
|
tooltipLink?: string;
|
|
220
|
+
/**
|
|
221
|
+
* 文档描述
|
|
222
|
+
*/
|
|
113
223
|
docDescription?: string;
|
|
224
|
+
/**
|
|
225
|
+
* 隐藏绑定属性按钮
|
|
226
|
+
*/
|
|
114
227
|
bindHide: boolean;
|
|
228
|
+
/**
|
|
229
|
+
* 绑定属性并打开弹窗
|
|
230
|
+
*/
|
|
115
231
|
bindOpen: boolean;
|
|
232
|
+
/**
|
|
233
|
+
* 所在的 tab 页
|
|
234
|
+
*/
|
|
116
235
|
tabKind: 'property' | 'style';
|
|
236
|
+
/**
|
|
237
|
+
* 属性设置器
|
|
238
|
+
*/
|
|
117
239
|
setter: BaseSetter;
|
|
240
|
+
/**
|
|
241
|
+
* 属性在面板中的布局方式
|
|
242
|
+
*
|
|
243
|
+
* block 表示标题与设置器分行展示;inline 表示同一行展示
|
|
244
|
+
*/
|
|
118
245
|
layout: 'block' | 'inline';
|
|
246
|
+
/**
|
|
247
|
+
* 默认值
|
|
248
|
+
*/
|
|
119
249
|
defaultValue?: DefaultValue;
|
|
250
|
+
/**
|
|
251
|
+
* 渲染时的设计值
|
|
252
|
+
*/
|
|
120
253
|
tsDesignerValue?: string;
|
|
254
|
+
/**
|
|
255
|
+
* 是否显隐
|
|
256
|
+
*
|
|
257
|
+
* 用 TS 写表达式,在 IDE 中直接 eval
|
|
258
|
+
*/
|
|
121
259
|
tsIf?: string;
|
|
260
|
+
/**
|
|
261
|
+
* 是否禁用
|
|
262
|
+
*
|
|
263
|
+
* 用 TS 写表达式,在 IDE 中直接 eval
|
|
264
|
+
*/
|
|
122
265
|
tsDisabledIf?: string;
|
|
266
|
+
/**
|
|
267
|
+
* 在属性切换时发生的事件
|
|
268
|
+
*
|
|
269
|
+
* 用 TS 写表达式,在 IDE 中直接 eval
|
|
270
|
+
*/
|
|
123
271
|
tsOnChange?: string;
|
|
124
272
|
}
|
|
125
273
|
|
|
@@ -128,9 +276,23 @@ export interface PropDeclaration {
|
|
|
128
276
|
*/
|
|
129
277
|
export interface EventDeclaration {
|
|
130
278
|
concept: 'EventDeclaration';
|
|
279
|
+
/**
|
|
280
|
+
* 组件事件名称
|
|
281
|
+
*/
|
|
131
282
|
name: string;
|
|
283
|
+
/**
|
|
284
|
+
* 组件事件标题
|
|
285
|
+
*/
|
|
132
286
|
title: string;
|
|
287
|
+
/**
|
|
288
|
+
* 组件事件描述
|
|
289
|
+
*/
|
|
133
290
|
description?: string;
|
|
291
|
+
/**
|
|
292
|
+
* 类型
|
|
293
|
+
*
|
|
294
|
+
* 直接写 TS 类型,这里是个函数类型
|
|
295
|
+
*/
|
|
134
296
|
tsType: string;
|
|
135
297
|
}
|
|
136
298
|
|
|
@@ -139,12 +301,35 @@ export interface EventDeclaration {
|
|
|
139
301
|
*/
|
|
140
302
|
export interface SlotDeclaration {
|
|
141
303
|
concept: 'SlotDeclaration';
|
|
304
|
+
/**
|
|
305
|
+
* 插槽名称
|
|
306
|
+
*/
|
|
142
307
|
name: string;
|
|
308
|
+
/**
|
|
309
|
+
* 插槽标题
|
|
310
|
+
*/
|
|
143
311
|
title: string;
|
|
312
|
+
/**
|
|
313
|
+
* 插槽描述
|
|
314
|
+
*/
|
|
144
315
|
description?: string;
|
|
316
|
+
/**
|
|
317
|
+
* 类型
|
|
318
|
+
*
|
|
319
|
+
* 直接写 TS 类型
|
|
320
|
+
*/
|
|
145
321
|
tsType: string;
|
|
322
|
+
/**
|
|
323
|
+
* 输入参数列表
|
|
324
|
+
*/
|
|
146
325
|
params: Array<Param>;
|
|
326
|
+
/**
|
|
327
|
+
* 空的占位图
|
|
328
|
+
*/
|
|
147
329
|
emptyBackground?: string;
|
|
330
|
+
/**
|
|
331
|
+
* 插槽代码块
|
|
332
|
+
*/
|
|
148
333
|
snippets: Array<ViewBlockWithImage>;
|
|
149
334
|
}
|
|
150
335
|
|
|
@@ -153,11 +338,29 @@ export interface SlotDeclaration {
|
|
|
153
338
|
*/
|
|
154
339
|
export interface LogicDeclaration {
|
|
155
340
|
concept: 'LogicDeclaration';
|
|
341
|
+
/**
|
|
342
|
+
* 逻辑名称
|
|
343
|
+
*/
|
|
156
344
|
name: string;
|
|
345
|
+
/**
|
|
346
|
+
* 逻辑标题
|
|
347
|
+
*/
|
|
157
348
|
title: string;
|
|
349
|
+
/**
|
|
350
|
+
* 逻辑描述
|
|
351
|
+
*/
|
|
158
352
|
description: string;
|
|
353
|
+
/**
|
|
354
|
+
* 类型参数列表
|
|
355
|
+
*/
|
|
159
356
|
typeParams?: Array<TypeParam>;
|
|
357
|
+
/**
|
|
358
|
+
* 输入参数列表
|
|
359
|
+
*/
|
|
160
360
|
params: Array<Param>;
|
|
361
|
+
/**
|
|
362
|
+
* 输出参数列表
|
|
363
|
+
*/
|
|
161
364
|
returns: Array<Return>;
|
|
162
365
|
}
|
|
163
366
|
|
|
@@ -174,6 +377,9 @@ export interface NullLiteral {
|
|
|
174
377
|
*/
|
|
175
378
|
export interface BooleanLiteral {
|
|
176
379
|
concept: 'BooleanLiteral';
|
|
380
|
+
/**
|
|
381
|
+
* 字面量的值
|
|
382
|
+
*/
|
|
177
383
|
value: string;
|
|
178
384
|
}
|
|
179
385
|
|
|
@@ -182,7 +388,13 @@ export interface BooleanLiteral {
|
|
|
182
388
|
*/
|
|
183
389
|
export interface StringLiteral {
|
|
184
390
|
concept: 'StringLiteral';
|
|
391
|
+
/**
|
|
392
|
+
* 字面量的值
|
|
393
|
+
*/
|
|
185
394
|
value: string;
|
|
395
|
+
/**
|
|
396
|
+
* 国际化键
|
|
397
|
+
*/
|
|
186
398
|
i18nKey?: string;
|
|
187
399
|
}
|
|
188
400
|
|
|
@@ -191,7 +403,13 @@ export interface StringLiteral {
|
|
|
191
403
|
*/
|
|
192
404
|
export interface NumericLiteral {
|
|
193
405
|
concept: 'NumericLiteral';
|
|
406
|
+
/**
|
|
407
|
+
* 字面量的值
|
|
408
|
+
*/
|
|
194
409
|
value: string;
|
|
410
|
+
/**
|
|
411
|
+
* 类型
|
|
412
|
+
*/
|
|
195
413
|
typeAnnotation: TypeAnnotation;
|
|
196
414
|
}
|
|
197
415
|
|
|
@@ -200,7 +418,13 @@ export interface NumericLiteral {
|
|
|
200
418
|
*/
|
|
201
419
|
export interface NewList {
|
|
202
420
|
concept: 'NewList';
|
|
421
|
+
/**
|
|
422
|
+
* 类型
|
|
423
|
+
*/
|
|
203
424
|
typeAnnotation?: TypeAnnotation;
|
|
425
|
+
/**
|
|
426
|
+
* 成员表达式
|
|
427
|
+
*/
|
|
204
428
|
items: Array<LogicItem>;
|
|
205
429
|
}
|
|
206
430
|
|
|
@@ -209,11 +433,33 @@ export interface NewList {
|
|
|
209
433
|
*/
|
|
210
434
|
export interface SetterOption {
|
|
211
435
|
concept: 'SetterOption';
|
|
436
|
+
/**
|
|
437
|
+
* 选项值
|
|
438
|
+
*/
|
|
212
439
|
value: string;
|
|
440
|
+
/**
|
|
441
|
+
* 选项标题
|
|
442
|
+
*/
|
|
213
443
|
title: string;
|
|
444
|
+
/**
|
|
445
|
+
* 选项图标
|
|
446
|
+
*/
|
|
214
447
|
icon?: string;
|
|
448
|
+
/**
|
|
449
|
+
* 选项工具提示
|
|
450
|
+
*/
|
|
215
451
|
tooltip?: string;
|
|
452
|
+
/**
|
|
453
|
+
* 是否显隐
|
|
454
|
+
*
|
|
455
|
+
* 用 TS 写表达式,在 IDE 中直接 eval
|
|
456
|
+
*/
|
|
216
457
|
tsIf?: string;
|
|
458
|
+
/**
|
|
459
|
+
* 是否禁用
|
|
460
|
+
*
|
|
461
|
+
* 用 TS 写表达式,在 IDE 中直接 eval
|
|
462
|
+
*/
|
|
217
463
|
tsDisabledIf?: string;
|
|
218
464
|
}
|
|
219
465
|
|
|
@@ -222,10 +468,25 @@ export interface SetterOption {
|
|
|
222
468
|
*/
|
|
223
469
|
export interface ViewBlockWithImage {
|
|
224
470
|
concept: 'ViewBlockWithImage';
|
|
471
|
+
/**
|
|
472
|
+
* 标题
|
|
473
|
+
*/
|
|
225
474
|
title: string;
|
|
475
|
+
/**
|
|
476
|
+
* 代码
|
|
477
|
+
*/
|
|
226
478
|
code: string;
|
|
479
|
+
/**
|
|
480
|
+
* 描述
|
|
481
|
+
*/
|
|
227
482
|
description?: string;
|
|
483
|
+
/**
|
|
484
|
+
* 截图
|
|
485
|
+
*/
|
|
228
486
|
screenshot: string;
|
|
487
|
+
/**
|
|
488
|
+
* 手绘
|
|
489
|
+
*/
|
|
229
490
|
drawing: string;
|
|
230
491
|
}
|
|
231
492
|
|
|
@@ -234,8 +495,17 @@ export interface ViewBlockWithImage {
|
|
|
234
495
|
*/
|
|
235
496
|
export interface ViewBlock {
|
|
236
497
|
concept: 'ViewBlock';
|
|
498
|
+
/**
|
|
499
|
+
* 标题
|
|
500
|
+
*/
|
|
237
501
|
title: string;
|
|
502
|
+
/**
|
|
503
|
+
* 代码
|
|
504
|
+
*/
|
|
238
505
|
code: string;
|
|
506
|
+
/**
|
|
507
|
+
* 描述
|
|
508
|
+
*/
|
|
239
509
|
description?: string;
|
|
240
510
|
}
|
|
241
511
|
|
|
@@ -244,6 +514,9 @@ export interface ViewBlock {
|
|
|
244
514
|
*/
|
|
245
515
|
export interface ThemeVariable {
|
|
246
516
|
concept: 'ThemeVariable';
|
|
517
|
+
/**
|
|
518
|
+
* 主题变量名称
|
|
519
|
+
*/
|
|
247
520
|
name: string;
|
|
248
521
|
}
|
|
249
522
|
|
|
@@ -252,13 +525,19 @@ export interface ThemeVariable {
|
|
|
252
525
|
*/
|
|
253
526
|
export interface DefaultValue {
|
|
254
527
|
concept: 'DefaultValue';
|
|
528
|
+
/**
|
|
529
|
+
* 根表达式
|
|
530
|
+
*/
|
|
255
531
|
expression: LogicItem;
|
|
532
|
+
/**
|
|
533
|
+
* 草稿态
|
|
534
|
+
*/
|
|
256
535
|
playground: Array<LogicItem>;
|
|
257
536
|
}
|
|
258
537
|
|
|
259
538
|
/**
|
|
260
|
-
* 设置器基类
|
|
261
|
-
*/
|
|
539
|
+
* 设置器基类
|
|
540
|
+
*/
|
|
262
541
|
export type LogicItem = NullLiteral | BooleanLiteral | StringLiteral | NumericLiteral | NewList;
|
|
263
542
|
|
|
264
543
|
/**
|
|
@@ -266,10 +545,25 @@ export type LogicItem = NullLiteral | BooleanLiteral | StringLiteral | NumericLi
|
|
|
266
545
|
*/
|
|
267
546
|
export interface Param {
|
|
268
547
|
concept: 'Param';
|
|
548
|
+
/**
|
|
549
|
+
* 输入参数名称
|
|
550
|
+
*/
|
|
269
551
|
name: string;
|
|
552
|
+
/**
|
|
553
|
+
* 输入参数描述
|
|
554
|
+
*/
|
|
270
555
|
description?: string;
|
|
556
|
+
/**
|
|
557
|
+
* 是否为展开参数
|
|
558
|
+
*/
|
|
271
559
|
spread?: boolean;
|
|
560
|
+
/**
|
|
561
|
+
* 类型
|
|
562
|
+
*/
|
|
272
563
|
typeAnnotation?: TypeAnnotation;
|
|
564
|
+
/**
|
|
565
|
+
* 默认值
|
|
566
|
+
*/
|
|
273
567
|
defaultValue?: DefaultValue;
|
|
274
568
|
}
|
|
275
569
|
|
|
@@ -278,13 +572,37 @@ export interface Param {
|
|
|
278
572
|
*/
|
|
279
573
|
export interface TypeAnnotation {
|
|
280
574
|
concept: 'TypeAnnotation';
|
|
575
|
+
/**
|
|
576
|
+
* 类型种类
|
|
577
|
+
*/
|
|
281
578
|
typeKind: 'primitive' | 'reference' | 'generic' | 'typeParam' | 'function' | 'union' | 'anonymousStructure';
|
|
579
|
+
/**
|
|
580
|
+
* 类型命名空间
|
|
581
|
+
*/
|
|
282
582
|
typeNamespace: string;
|
|
583
|
+
/**
|
|
584
|
+
* 类型名称
|
|
585
|
+
*/
|
|
283
586
|
typeName: string;
|
|
587
|
+
/**
|
|
588
|
+
* 类型参数
|
|
589
|
+
*/
|
|
284
590
|
typeArguments?: Array<TypeAnnotation>;
|
|
591
|
+
/**
|
|
592
|
+
* 返回类型
|
|
593
|
+
*/
|
|
285
594
|
returnType?: Array<TypeAnnotation>;
|
|
595
|
+
/**
|
|
596
|
+
* 是否是推断出来的
|
|
597
|
+
*/
|
|
286
598
|
inferred: boolean;
|
|
599
|
+
/**
|
|
600
|
+
* 匿名数据结构属性
|
|
601
|
+
*/
|
|
287
602
|
properties?: Array<StructureProperty>;
|
|
603
|
+
/**
|
|
604
|
+
* 规则对象
|
|
605
|
+
*/
|
|
288
606
|
ruleMap: Map<string, number>;
|
|
289
607
|
}
|
|
290
608
|
|
|
@@ -293,11 +611,33 @@ export interface TypeAnnotation {
|
|
|
293
611
|
*/
|
|
294
612
|
export interface StructureProperty {
|
|
295
613
|
concept: 'StructureProperty';
|
|
614
|
+
/**
|
|
615
|
+
* 数据结构属性名称
|
|
616
|
+
*/
|
|
296
617
|
name: string;
|
|
618
|
+
/**
|
|
619
|
+
* 数据结构属性标题
|
|
620
|
+
*/
|
|
297
621
|
label?: string;
|
|
622
|
+
/**
|
|
623
|
+
* 数据结构属性描述
|
|
624
|
+
*/
|
|
298
625
|
description?: string;
|
|
626
|
+
/**
|
|
627
|
+
* 类型
|
|
628
|
+
*/
|
|
299
629
|
typeAnnotation?: TypeAnnotation;
|
|
630
|
+
/**
|
|
631
|
+
* 默认值
|
|
632
|
+
*
|
|
633
|
+
* defaultValue结构体
|
|
634
|
+
*/
|
|
300
635
|
defaultValue?: DefaultValue;
|
|
636
|
+
/**
|
|
637
|
+
* 数据结构字段 JSON 的序列化别名
|
|
638
|
+
*
|
|
639
|
+
* JSON 字符串别名
|
|
640
|
+
*/
|
|
301
641
|
jsonName?: string;
|
|
302
642
|
}
|
|
303
643
|
|
|
@@ -306,6 +646,9 @@ export interface StructureProperty {
|
|
|
306
646
|
*/
|
|
307
647
|
export interface TypeParam {
|
|
308
648
|
concept: 'TypeParam';
|
|
649
|
+
/**
|
|
650
|
+
* 类型名称
|
|
651
|
+
*/
|
|
309
652
|
name: string;
|
|
310
653
|
}
|
|
311
654
|
|
|
@@ -314,9 +657,21 @@ export interface TypeParam {
|
|
|
314
657
|
*/
|
|
315
658
|
export interface Return {
|
|
316
659
|
concept: 'Return';
|
|
660
|
+
/**
|
|
661
|
+
* 输出参数名称
|
|
662
|
+
*/
|
|
317
663
|
name: string;
|
|
664
|
+
/**
|
|
665
|
+
* 输出参数描述
|
|
666
|
+
*/
|
|
318
667
|
description: string;
|
|
668
|
+
/**
|
|
669
|
+
* 类型
|
|
670
|
+
*/
|
|
319
671
|
typeAnnotation?: TypeAnnotation;
|
|
672
|
+
/**
|
|
673
|
+
* 默认值
|
|
674
|
+
*/
|
|
320
675
|
defaultValue?: DefaultValue;
|
|
321
676
|
}
|
|
322
677
|
|