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

Function isPrimitiveAnd

frontend/src/utils/portUtils.ts:97–98  ·  view source on GitHub ↗
(dataType: ConnectionType, predicate: (name: string) => boolean)

Source from the content-addressed store, hash-verified

95 comparePortTypes(normalizePortType(source), normalizePortType(target));
96
97const isPrimitiveAnd = (dataType: ConnectionType, predicate: (name: string) => boolean): boolean =>
98 isPrimitive(dataType) && predicate(dataType.name ?? 'text');
99
100export const isTextLikePort = (dataType: PortLike): boolean =>
101 isPrimitiveAnd(normalizePortType(dataType), (name) => name === 'text');

Callers 2

isTextLikePortFunction · 0.85
inputSupportsManualValueFunction · 0.85

Calls 1

isPrimitiveFunction · 0.85

Tested by

no test coverage detected