MCPcopy Create free account
hub / github.com/ShipSecAI/studio / isListOfTextPort

Function isListOfTextPort

frontend/src/utils/portUtils.ts:103–111  ·  view source on GitHub ↗
(dataType: PortLike)

Source from the content-addressed store, hash-verified

101 isPrimitiveAnd(normalizePortType(dataType), (name) => name === 'text');
102
103export 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
113export const describePortType = (dataType: PortLike): string => {
114 const normalized = normalizePortType(dataType);

Callers 2

ConfigPanelFunction · 0.90
inputSupportsManualValueFunction · 0.85

Calls 3

normalizePortTypeFunction · 0.85
isListFunction · 0.85
isPrimitiveFunction · 0.85

Tested by

no test coverage detected