MCPcopy Create free account
hub / github.com/freecodexyz/free-code / isConnectorTextBlock

Function isConnectorTextBlock

src/types/connectorText.ts:11–22  ·  view source on GitHub ↗
(
  value: unknown,
)

Source from the content-addressed store, hash-verified

9}
10
11export function isConnectorTextBlock(
12 value: unknown,
13): value is ConnectorTextBlock {
14 return (
15 typeof value === 'object' &&
16 value !== null &&
17 'type' in value &&
18 'connector_text' in value &&
19 (value as { type?: unknown }).type === 'connector_text' &&
20 typeof (value as { connector_text?: unknown }).connector_text === 'string'
21 )
22}

Callers 5

AssistantMessageBlockFunction · 0.85
handleMessageFromStreamFunction · 0.85
stripSignatureBlocksFunction · 0.85
logAPISuccessAndDurationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected