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