File size: 541 Bytes
064bfd6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | export type ConnectorTextBlock = {
type: 'connector_text'
connector_text: string
}
export type ConnectorTextDelta = {
type: 'connector_text_delta'
connector_text: string
}
export function isConnectorTextBlock(
value: unknown,
): value is ConnectorTextBlock {
return (
typeof value === 'object' &&
value !== null &&
'type' in value &&
'connector_text' in value &&
(value as { type?: unknown }).type === 'connector_text' &&
typeof (value as { connector_text?: unknown }).connector_text === 'string'
)
}
|