@formily-design/formily-antd 1.0.4 → 1.0.6

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.
@@ -1,649 +1,4 @@
1
1
  import { ISchema } from '@formily/json-schema';
2
- export declare const createComponentSchema: (component: ISchema, decorator: ISchema) => {
3
- 'component-group': {
4
- type: string;
5
- 'x-component': string;
6
- 'x-reactions': {
7
- fulfill: {
8
- state: {
9
- visible: string;
10
- };
11
- };
12
- };
13
- properties: {
14
- 'x-component-props': import("@formily/json-schema").Stringify<{
15
- [key: symbol]: any;
16
- [key: `x-${string}`]: any;
17
- [key: `x-${number}`]: any;
18
- version?: string;
19
- name?: import("@formily/json-schema").SchemaKey;
20
- title?: any;
21
- description?: any;
22
- default?: any;
23
- readOnly?: boolean;
24
- writeOnly?: boolean;
25
- type?: import("@formily/json-schema").SchemaTypes;
26
- enum?: import("@formily/json-schema").SchemaEnum<any>;
27
- const?: any;
28
- multipleOf?: number;
29
- maximum?: number;
30
- exclusiveMaximum?: number;
31
- minimum?: number;
32
- exclusiveMinimum?: number;
33
- maxLength?: number;
34
- minLength?: number;
35
- pattern?: string | RegExp;
36
- maxItems?: number;
37
- minItems?: number;
38
- uniqueItems?: boolean;
39
- maxProperties?: number;
40
- minProperties?: number;
41
- required?: string[] | boolean | string;
42
- format?: string;
43
- $ref?: string;
44
- $namespace?: string;
45
- definitions?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any>;
46
- properties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any>;
47
- items?: import("@formily/json-schema").SchemaItems<any, any, any, any, any, any, any, any>;
48
- additionalItems?: import("@formily/json-schema").Stringify</*elided*/ any>;
49
- patternProperties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any>;
50
- additionalProperties?: import("@formily/json-schema").Stringify</*elided*/ any>;
51
- "x-value"?: any;
52
- "x-index"?: number;
53
- "x-pattern"?: any;
54
- "x-display"?: any;
55
- "x-validator"?: any;
56
- "x-decorator"?: any;
57
- "x-decorator-props"?: any;
58
- "x-component"?: any;
59
- "x-component-props"?: any;
60
- "x-reactions"?: import("@formily/json-schema").SchemaReactions<any>;
61
- "x-content"?: any;
62
- "x-data"?: any;
63
- "x-visible"?: boolean;
64
- "x-hidden"?: boolean;
65
- "x-disabled"?: boolean;
66
- "x-editable"?: boolean;
67
- "x-read-only"?: boolean;
68
- "x-read-pretty"?: boolean;
69
- "x-compile-omitted"?: string[];
70
- }>;
71
- };
72
- };
73
- 'decorator-group': {
74
- type: string;
75
- 'x-component': string;
76
- 'x-component-props': {
77
- defaultExpand: boolean;
78
- };
79
- 'x-reactions': {
80
- fulfill: {
81
- state: {
82
- visible: string;
83
- };
84
- };
85
- };
86
- properties: {
87
- 'x-decorator-props': import("@formily/json-schema").Stringify<{
88
- [key: symbol]: any;
89
- [key: `x-${string}`]: any;
90
- [key: `x-${number}`]: any;
91
- version?: string;
92
- name?: import("@formily/json-schema").SchemaKey;
93
- title?: any;
94
- description?: any;
95
- default?: any;
96
- readOnly?: boolean;
97
- writeOnly?: boolean;
98
- type?: import("@formily/json-schema").SchemaTypes;
99
- enum?: import("@formily/json-schema").SchemaEnum<any>;
100
- const?: any;
101
- multipleOf?: number;
102
- maximum?: number;
103
- exclusiveMaximum?: number;
104
- minimum?: number;
105
- exclusiveMinimum?: number;
106
- maxLength?: number;
107
- minLength?: number;
108
- pattern?: string | RegExp;
109
- maxItems?: number;
110
- minItems?: number;
111
- uniqueItems?: boolean;
112
- maxProperties?: number;
113
- minProperties?: number;
114
- required?: string[] | boolean | string;
115
- format?: string;
116
- $ref?: string;
117
- $namespace?: string;
118
- definitions?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any>;
119
- properties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any>;
120
- items?: import("@formily/json-schema").SchemaItems<any, any, any, any, any, any, any, any>;
121
- additionalItems?: import("@formily/json-schema").Stringify</*elided*/ any>;
122
- patternProperties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any>;
123
- additionalProperties?: import("@formily/json-schema").Stringify</*elided*/ any>;
124
- "x-value"?: any;
125
- "x-index"?: number;
126
- "x-pattern"?: any;
127
- "x-display"?: any;
128
- "x-validator"?: any;
129
- "x-decorator"?: any;
130
- "x-decorator-props"?: any;
131
- "x-component"?: any;
132
- "x-component-props"?: any;
133
- "x-reactions"?: import("@formily/json-schema").SchemaReactions<any>;
134
- "x-content"?: any;
135
- "x-data"?: any;
136
- "x-visible"?: boolean;
137
- "x-hidden"?: boolean;
138
- "x-disabled"?: boolean;
139
- "x-editable"?: boolean;
140
- "x-read-only"?: boolean;
141
- "x-read-pretty"?: boolean;
142
- "x-compile-omitted"?: string[];
143
- }>;
144
- };
145
- };
146
- 'component-style-group': {
147
- type: string;
148
- 'x-component': string;
149
- 'x-component-props': {
150
- defaultExpand: boolean;
151
- };
152
- 'x-reactions': {
153
- fulfill: {
154
- state: {
155
- visible: string;
156
- };
157
- };
158
- };
159
- properties: {
160
- 'x-component-props.style': import("@formily/json-schema").Stringify<{
161
- [key: symbol]: any;
162
- [key: `x-${string}`]: any;
163
- [key: `x-${number}`]: any;
164
- version?: string;
165
- name?: import("@formily/json-schema").SchemaKey;
166
- title?: any;
167
- description?: any;
168
- default?: any;
169
- readOnly?: boolean;
170
- writeOnly?: boolean;
171
- type?: import("@formily/json-schema").SchemaTypes;
172
- enum?: import("@formily/json-schema").SchemaEnum<any>;
173
- const?: any;
174
- multipleOf?: number;
175
- maximum?: number;
176
- exclusiveMaximum?: number;
177
- minimum?: number;
178
- exclusiveMinimum?: number;
179
- maxLength?: number;
180
- minLength?: number;
181
- pattern?: string | RegExp;
182
- maxItems?: number;
183
- minItems?: number;
184
- uniqueItems?: boolean;
185
- maxProperties?: number;
186
- minProperties?: number;
187
- required?: string[] | boolean | string;
188
- format?: string;
189
- $ref?: string;
190
- $namespace?: string;
191
- definitions?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any>;
192
- properties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any>;
193
- items?: import("@formily/json-schema").SchemaItems<any, any, any, any, any, any, any, any>;
194
- additionalItems?: import("@formily/json-schema").Stringify</*elided*/ any>;
195
- patternProperties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any>;
196
- additionalProperties?: import("@formily/json-schema").Stringify</*elided*/ any>;
197
- "x-value"?: any;
198
- "x-index"?: number;
199
- "x-pattern"?: any;
200
- "x-display"?: any;
201
- "x-validator"?: any;
202
- "x-decorator"?: any;
203
- "x-decorator-props"?: any;
204
- "x-component"?: any;
205
- "x-component-props"?: any;
206
- "x-reactions"?: import("@formily/json-schema").SchemaReactions<any>;
207
- "x-content"?: any;
208
- "x-data"?: any;
209
- "x-visible"?: boolean;
210
- "x-hidden"?: boolean;
211
- "x-disabled"?: boolean;
212
- "x-editable"?: boolean;
213
- "x-read-only"?: boolean;
214
- "x-read-pretty"?: boolean;
215
- "x-compile-omitted"?: string[];
216
- }>;
217
- };
218
- };
219
- 'decorator-style-group': {
220
- type: string;
221
- 'x-component': string;
222
- 'x-component-props': {
223
- defaultExpand: boolean;
224
- };
225
- 'x-reactions': {
226
- fulfill: {
227
- state: {
228
- visible: string;
229
- };
230
- };
231
- };
232
- properties: {
233
- 'x-decorator-props.style': import("@formily/json-schema").Stringify<{
234
- [key: symbol]: any;
235
- [key: `x-${string}`]: any;
236
- [key: `x-${number}`]: any;
237
- version?: string;
238
- name?: import("@formily/json-schema").SchemaKey;
239
- title?: any;
240
- description?: any;
241
- default?: any;
242
- readOnly?: boolean;
243
- writeOnly?: boolean;
244
- type?: import("@formily/json-schema").SchemaTypes;
245
- enum?: import("@formily/json-schema").SchemaEnum<any>;
246
- const?: any;
247
- multipleOf?: number;
248
- maximum?: number;
249
- exclusiveMaximum?: number;
250
- minimum?: number;
251
- exclusiveMinimum?: number;
252
- maxLength?: number;
253
- minLength?: number;
254
- pattern?: string | RegExp;
255
- maxItems?: number;
256
- minItems?: number;
257
- uniqueItems?: boolean;
258
- maxProperties?: number;
259
- minProperties?: number;
260
- required?: string[] | boolean | string;
261
- format?: string;
262
- $ref?: string;
263
- $namespace?: string;
264
- definitions?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any>;
265
- properties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any>;
266
- items?: import("@formily/json-schema").SchemaItems<any, any, any, any, any, any, any, any>;
267
- additionalItems?: import("@formily/json-schema").Stringify</*elided*/ any>;
268
- patternProperties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any>;
269
- additionalProperties?: import("@formily/json-schema").Stringify</*elided*/ any>;
270
- "x-value"?: any;
271
- "x-index"?: number;
272
- "x-pattern"?: any;
273
- "x-display"?: any;
274
- "x-validator"?: any;
275
- "x-decorator"?: any;
276
- "x-decorator-props"?: any;
277
- "x-component"?: any;
278
- "x-component-props"?: any;
279
- "x-reactions"?: import("@formily/json-schema").SchemaReactions<any>;
280
- "x-content"?: any;
281
- "x-data"?: any;
282
- "x-visible"?: boolean;
283
- "x-hidden"?: boolean;
284
- "x-disabled"?: boolean;
285
- "x-editable"?: boolean;
286
- "x-read-only"?: boolean;
287
- "x-read-pretty"?: boolean;
288
- "x-compile-omitted"?: string[];
289
- }>;
290
- };
291
- };
292
- };
2
+ export declare const createComponentSchema: (component: ISchema, decorator: ISchema) => Record<string, ISchema | undefined>;
293
3
  export declare const createFieldSchema: (component?: ISchema, decorator?: ISchema) => ISchema;
294
- export declare const createVoidFieldSchema: (component?: ISchema, decorator?: ISchema) => {
295
- type: string;
296
- properties: {
297
- 'component-group': {
298
- type: string;
299
- 'x-component': string;
300
- 'x-reactions': {
301
- fulfill: {
302
- state: {
303
- visible: string;
304
- };
305
- };
306
- };
307
- properties: {
308
- 'x-component-props': import("@formily/json-schema").Stringify<{
309
- [key: symbol]: any;
310
- [key: `x-${string}`]: any;
311
- [key: `x-${number}`]: any;
312
- version?: string;
313
- name?: import("@formily/json-schema").SchemaKey;
314
- title?: any;
315
- description?: any;
316
- default?: any;
317
- readOnly?: boolean;
318
- writeOnly?: boolean;
319
- type?: import("@formily/json-schema").SchemaTypes;
320
- enum?: import("@formily/json-schema").SchemaEnum<any>;
321
- const?: any;
322
- multipleOf?: number;
323
- maximum?: number;
324
- exclusiveMaximum?: number;
325
- minimum?: number;
326
- exclusiveMinimum?: number;
327
- maxLength?: number;
328
- minLength?: number;
329
- pattern?: string | RegExp;
330
- maxItems?: number;
331
- minItems?: number;
332
- uniqueItems?: boolean;
333
- maxProperties?: number;
334
- minProperties?: number;
335
- required?: string[] | boolean | string;
336
- format?: string;
337
- $ref?: string;
338
- $namespace?: string;
339
- definitions?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any>;
340
- properties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any>;
341
- items?: import("@formily/json-schema").SchemaItems<any, any, any, any, any, any, any, any>;
342
- additionalItems?: import("@formily/json-schema").Stringify</*elided*/ any>;
343
- patternProperties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any>;
344
- additionalProperties?: import("@formily/json-schema").Stringify</*elided*/ any>;
345
- "x-value"?: any;
346
- "x-index"?: number;
347
- "x-pattern"?: any;
348
- "x-display"?: any;
349
- "x-validator"?: any;
350
- "x-decorator"?: any;
351
- "x-decorator-props"?: any;
352
- "x-component"?: any;
353
- "x-component-props"?: any;
354
- "x-reactions"?: import("@formily/json-schema").SchemaReactions<any>;
355
- "x-content"?: any;
356
- "x-data"?: any;
357
- "x-visible"?: boolean;
358
- "x-hidden"?: boolean;
359
- "x-disabled"?: boolean;
360
- "x-editable"?: boolean;
361
- "x-read-only"?: boolean;
362
- "x-read-pretty"?: boolean;
363
- "x-compile-omitted"?: string[];
364
- }>;
365
- };
366
- };
367
- 'decorator-group': {
368
- type: string;
369
- 'x-component': string;
370
- 'x-component-props': {
371
- defaultExpand: boolean;
372
- };
373
- 'x-reactions': {
374
- fulfill: {
375
- state: {
376
- visible: string;
377
- };
378
- };
379
- };
380
- properties: {
381
- 'x-decorator-props': import("@formily/json-schema").Stringify<{
382
- [key: symbol]: any;
383
- [key: `x-${string}`]: any;
384
- [key: `x-${number}`]: any;
385
- version?: string;
386
- name?: import("@formily/json-schema").SchemaKey;
387
- title?: any;
388
- description?: any;
389
- default?: any;
390
- readOnly?: boolean;
391
- writeOnly?: boolean;
392
- type?: import("@formily/json-schema").SchemaTypes;
393
- enum?: import("@formily/json-schema").SchemaEnum<any>;
394
- const?: any;
395
- multipleOf?: number;
396
- maximum?: number;
397
- exclusiveMaximum?: number;
398
- minimum?: number;
399
- exclusiveMinimum?: number;
400
- maxLength?: number;
401
- minLength?: number;
402
- pattern?: string | RegExp;
403
- maxItems?: number;
404
- minItems?: number;
405
- uniqueItems?: boolean;
406
- maxProperties?: number;
407
- minProperties?: number;
408
- required?: string[] | boolean | string;
409
- format?: string;
410
- $ref?: string;
411
- $namespace?: string;
412
- definitions?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any>;
413
- properties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any>;
414
- items?: import("@formily/json-schema").SchemaItems<any, any, any, any, any, any, any, any>;
415
- additionalItems?: import("@formily/json-schema").Stringify</*elided*/ any>;
416
- patternProperties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any>;
417
- additionalProperties?: import("@formily/json-schema").Stringify</*elided*/ any>;
418
- "x-value"?: any;
419
- "x-index"?: number;
420
- "x-pattern"?: any;
421
- "x-display"?: any;
422
- "x-validator"?: any;
423
- "x-decorator"?: any;
424
- "x-decorator-props"?: any;
425
- "x-component"?: any;
426
- "x-component-props"?: any;
427
- "x-reactions"?: import("@formily/json-schema").SchemaReactions<any>;
428
- "x-content"?: any;
429
- "x-data"?: any;
430
- "x-visible"?: boolean;
431
- "x-hidden"?: boolean;
432
- "x-disabled"?: boolean;
433
- "x-editable"?: boolean;
434
- "x-read-only"?: boolean;
435
- "x-read-pretty"?: boolean;
436
- "x-compile-omitted"?: string[];
437
- }>;
438
- };
439
- };
440
- 'component-style-group': {
441
- type: string;
442
- 'x-component': string;
443
- 'x-component-props': {
444
- defaultExpand: boolean;
445
- };
446
- 'x-reactions': {
447
- fulfill: {
448
- state: {
449
- visible: string;
450
- };
451
- };
452
- };
453
- properties: {
454
- 'x-component-props.style': import("@formily/json-schema").Stringify<{
455
- [key: symbol]: any;
456
- [key: `x-${string}`]: any;
457
- [key: `x-${number}`]: any;
458
- version?: string;
459
- name?: import("@formily/json-schema").SchemaKey;
460
- title?: any;
461
- description?: any;
462
- default?: any;
463
- readOnly?: boolean;
464
- writeOnly?: boolean;
465
- type?: import("@formily/json-schema").SchemaTypes;
466
- enum?: import("@formily/json-schema").SchemaEnum<any>;
467
- const?: any;
468
- multipleOf?: number;
469
- maximum?: number;
470
- exclusiveMaximum?: number;
471
- minimum?: number;
472
- exclusiveMinimum?: number;
473
- maxLength?: number;
474
- minLength?: number;
475
- pattern?: string | RegExp;
476
- maxItems?: number;
477
- minItems?: number;
478
- uniqueItems?: boolean;
479
- maxProperties?: number;
480
- minProperties?: number;
481
- required?: string[] | boolean | string;
482
- format?: string;
483
- $ref?: string;
484
- $namespace?: string;
485
- definitions?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any>;
486
- properties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any>;
487
- items?: import("@formily/json-schema").SchemaItems<any, any, any, any, any, any, any, any>;
488
- additionalItems?: import("@formily/json-schema").Stringify</*elided*/ any>;
489
- patternProperties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any>;
490
- additionalProperties?: import("@formily/json-schema").Stringify</*elided*/ any>;
491
- "x-value"?: any;
492
- "x-index"?: number;
493
- "x-pattern"?: any;
494
- "x-display"?: any;
495
- "x-validator"?: any;
496
- "x-decorator"?: any;
497
- "x-decorator-props"?: any;
498
- "x-component"?: any;
499
- "x-component-props"?: any;
500
- "x-reactions"?: import("@formily/json-schema").SchemaReactions<any>;
501
- "x-content"?: any;
502
- "x-data"?: any;
503
- "x-visible"?: boolean;
504
- "x-hidden"?: boolean;
505
- "x-disabled"?: boolean;
506
- "x-editable"?: boolean;
507
- "x-read-only"?: boolean;
508
- "x-read-pretty"?: boolean;
509
- "x-compile-omitted"?: string[];
510
- }>;
511
- };
512
- };
513
- 'decorator-style-group': {
514
- type: string;
515
- 'x-component': string;
516
- 'x-component-props': {
517
- defaultExpand: boolean;
518
- };
519
- 'x-reactions': {
520
- fulfill: {
521
- state: {
522
- visible: string;
523
- };
524
- };
525
- };
526
- properties: {
527
- 'x-decorator-props.style': import("@formily/json-schema").Stringify<{
528
- [key: symbol]: any;
529
- [key: `x-${string}`]: any;
530
- [key: `x-${number}`]: any;
531
- version?: string;
532
- name?: import("@formily/json-schema").SchemaKey;
533
- title?: any;
534
- description?: any;
535
- default?: any;
536
- readOnly?: boolean;
537
- writeOnly?: boolean;
538
- type?: import("@formily/json-schema").SchemaTypes;
539
- enum?: import("@formily/json-schema").SchemaEnum<any>;
540
- const?: any;
541
- multipleOf?: number;
542
- maximum?: number;
543
- exclusiveMaximum?: number;
544
- minimum?: number;
545
- exclusiveMinimum?: number;
546
- maxLength?: number;
547
- minLength?: number;
548
- pattern?: string | RegExp;
549
- maxItems?: number;
550
- minItems?: number;
551
- uniqueItems?: boolean;
552
- maxProperties?: number;
553
- minProperties?: number;
554
- required?: string[] | boolean | string;
555
- format?: string;
556
- $ref?: string;
557
- $namespace?: string;
558
- definitions?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any>;
559
- properties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any>;
560
- items?: import("@formily/json-schema").SchemaItems<any, any, any, any, any, any, any, any>;
561
- additionalItems?: import("@formily/json-schema").Stringify</*elided*/ any>;
562
- patternProperties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any>;
563
- additionalProperties?: import("@formily/json-schema").Stringify</*elided*/ any>;
564
- "x-value"?: any;
565
- "x-index"?: number;
566
- "x-pattern"?: any;
567
- "x-display"?: any;
568
- "x-validator"?: any;
569
- "x-decorator"?: any;
570
- "x-decorator-props"?: any;
571
- "x-component"?: any;
572
- "x-component-props"?: any;
573
- "x-reactions"?: import("@formily/json-schema").SchemaReactions<any>;
574
- "x-content"?: any;
575
- "x-data"?: any;
576
- "x-visible"?: boolean;
577
- "x-hidden"?: boolean;
578
- "x-disabled"?: boolean;
579
- "x-editable"?: boolean;
580
- "x-read-only"?: boolean;
581
- "x-read-pretty"?: boolean;
582
- "x-compile-omitted"?: string[];
583
- }>;
584
- };
585
- };
586
- 'field-group': {
587
- type: string;
588
- 'x-component': string;
589
- properties: {
590
- name: {
591
- type: string;
592
- 'x-decorator': string;
593
- 'x-component': string;
594
- };
595
- title: {
596
- type: string;
597
- 'x-decorator': string;
598
- 'x-component': string;
599
- 'x-reactions': {
600
- fulfill: {
601
- state: {
602
- hidden: string;
603
- };
604
- };
605
- };
606
- };
607
- description: {
608
- type: string;
609
- 'x-decorator': string;
610
- 'x-component': string;
611
- 'x-reactions': {
612
- fulfill: {
613
- state: {
614
- hidden: string;
615
- };
616
- };
617
- };
618
- };
619
- 'x-display': {
620
- type: string;
621
- enum: string[];
622
- 'x-decorator': string;
623
- 'x-component': string;
624
- 'x-component-props': {
625
- defaultValue: string;
626
- };
627
- };
628
- 'x-pattern': {
629
- type: string;
630
- enum: string[];
631
- 'x-decorator': string;
632
- 'x-component': string;
633
- 'x-component-props': {
634
- defaultValue: string;
635
- };
636
- };
637
- 'x-reactions': {
638
- 'x-decorator': string;
639
- 'x-component': import("react").FC<import("@formily-design/formily-setters").IReactionsSetterProps>;
640
- };
641
- 'x-decorator': {
642
- type: string;
643
- 'x-decorator': string;
644
- 'x-component': import("react").FC<import("../../common/FormItemSwitcher").IFormItemSwitcherProps>;
645
- };
646
- };
647
- };
648
- };
649
- };
4
+ export declare const createVoidFieldSchema: (component?: ISchema, decorator?: ISchema) => ISchema;