(dataType: PortLike)
| 101 | isPrimitiveAnd(normalizePortType(dataType), (name) => name === 'text'); |
| 102 | |
| 103 | export const isListOfTextPort = (dataType: PortLike): boolean => { |
| 104 | const normalized = normalizePortType(dataType); |
| 105 | return ( |
| 106 | isList(normalized) && |
| 107 | normalized.element !== undefined && |
| 108 | isPrimitive(normalizePortType(normalized.element)) && |
| 109 | normalizePortType(normalized.element).name === 'text' |
| 110 | ); |
| 111 | }; |
| 112 | |
| 113 | export const describePortType = (dataType: PortLike): string => { |
| 114 | const normalized = normalizePortType(dataType); |
no test coverage detected