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

Function arePortTypesCompatible

frontend/src/utils/portUtils.ts:94–95  ·  view source on GitHub ↗
(source: PortLike, target: PortLike)

Source from the content-addressed store, hash-verified

92};
93
94export const arePortTypesCompatible = (source: PortLike, target: PortLike): boolean =>
95 comparePortTypes(normalizePortType(source), normalizePortType(target));
96
97const isPrimitiveAnd = (dataType: ConnectionType, predicate: (name: string) => boolean): boolean =>
98 isPrimitive(dataType) && predicate(dataType.name ?? 'text');

Callers 1

validateConnectionFunction · 0.90

Calls 2

comparePortTypesFunction · 0.85
normalizePortTypeFunction · 0.85

Tested by

no test coverage detected