(field: IBaseFieldMeta)
| 36 | } |
| 37 | |
| 38 | formatMultiSelectField(field: IBaseFieldMeta) { |
| 39 | const property = field.property as any; |
| 40 | if (!property || !property?.options) { |
| 41 | { |
| 42 | return ''; |
| 43 | } |
| 44 | } |
| 45 | const options = property.options as any; |
| 46 | if (!options) { |
| 47 | return ''; |
| 48 | } |
| 49 | const optionsStr = options.map((o: any) => `"${ o.name }"`).join(' | '); |
| 50 | return `${ field.name }: (${ optionsStr })[];`; |
| 51 | } |
| 52 | |
| 53 | formatNumberField(iBaseFieldMeta: IBaseFieldMeta) { |
| 54 | return `${ iBaseFieldMeta.name }: number;`; |
no outgoing calls
no test coverage detected