(item: any)
| 623 | return schema; |
| 624 | |
| 625 | function controlToNormalRenderer(item: any) { |
| 626 | if (item?.$ref && props.resolveDefinitions) { |
| 627 | item = { |
| 628 | ...props.resolveDefinitions(item.$ref), |
| 629 | ...item |
| 630 | }; |
| 631 | delete item.$ref; |
| 632 | } |
| 633 | |
| 634 | return item && controlMapping[item.type] |
| 635 | ? { |
| 636 | ...item, |
| 637 | type: controlMapping[item.type] |
| 638 | } |
| 639 | : ~maybeFormItem.indexOf(item?.type) |
| 640 | ? wrapControl(item) |
| 641 | : ~maybeStatic.indexOf(item?.type) |
| 642 | ? wrapStatic(item) |
| 643 | : item; |
| 644 | } |
| 645 | }); |
no test coverage detected