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

Function isTextLikePort

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

Source from the content-addressed store, hash-verified

98 isPrimitive(dataType) && predicate(dataType.name ?? 'text');
99
100export const isTextLikePort = (dataType: PortLike): boolean =>
101 isPrimitiveAnd(normalizePortType(dataType), (name) => name === 'text');
102
103export const isListOfTextPort = (dataType: PortLike): boolean => {
104 const normalized = normalizePortType(dataType);

Callers

nothing calls this directly

Calls 2

isPrimitiveAndFunction · 0.85
normalizePortTypeFunction · 0.85

Tested by

no test coverage detected