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

Function normalizePortType

frontend/src/utils/portUtils.ts:17–18  ·  view source on GitHub ↗
(portType: PortLike)

Source from the content-addressed store, hash-verified

15const DEFAULT_TEXT_CONNECTION: ConnectionType = { kind: 'primitive', name: 'text' };
16
17const normalizePortType = (portType: PortLike): ConnectionType =>
18 portType ?? DEFAULT_TEXT_CONNECTION;
19
20export const resolvePortType = (port: { connectionType?: ConnectionType }): ConnectionType =>
21 normalizePortType(port.connectionType);

Callers 6

resolvePortTypeFunction · 0.85
comparePortTypesFunction · 0.85
arePortTypesCompatibleFunction · 0.85
isTextLikePortFunction · 0.85
isListOfTextPortFunction · 0.85
describePortTypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected