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

Function isContract

frontend/src/utils/portUtils.ts:48–49  ·  view source on GitHub ↗
(dataType: ConnectionType)

Source from the content-addressed store, hash-verified

46const isMap = (dataType: ConnectionType): dataType is MapPort => dataType?.kind === 'map';
47
48const isContract = (dataType: ConnectionType): dataType is ContractPort =>
49 dataType?.kind === 'contract';
50
51const canCoercePrimitive = (
52 source: Extract<ConnectionType, { kind: 'primitive' }>,

Callers 2

comparePortTypesFunction · 0.85
describePortTypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected