AIDK API Reference / aidk-shared / isContentBlock
Function: isContentBlock() ​
ts
function isContentBlock(value: unknown): value is ContentBlock;Defined in: packages/shared/src/input.ts:74
Check if value is a ContentBlock. Validates that type is a known block type, not just any object with a type property.
Parameters ​
| Parameter | Type |
|---|---|
value | unknown |
Returns ​
value is ContentBlock