(tool: BlockToolAdapter, direction: 'export' | 'import')
| 8 | * @param direction - export for tool to merge from, import for tool to merge to |
| 9 | */ |
| 10 | export function isToolConvertable(tool: BlockToolAdapter, direction: 'export' | 'import'): boolean { |
| 11 | if (!tool.conversionConfig) { |
| 12 | return false; |
| 13 | } |
| 14 | |
| 15 | const conversionProp = tool.conversionConfig[direction]; |
| 16 | |
| 17 | return isFunction(conversionProp) || isString(conversionProp); |
| 18 | } |
no test coverage detected