Function: isBinaryBlock()
@providerprotocol/ai / @providerprotocol/ai / isBinaryBlock
Function: isBinaryBlock()
Section titled “Function: isBinaryBlock()”isBinaryBlock(
block):block is BinaryBlock
Defined in: src/types/content.ts:570
Type guard for BinaryBlock.
Parameters
Section titled “Parameters”The content block to check
Returns
Section titled “Returns”block is BinaryBlock
True if the block is a BinaryBlock
Example
Section titled “Example”if (isBinaryBlock(block)) { console.log(block.mimeType, block.metadata);}