Skip to content

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 ​

ParameterType
valueunknown

Returns ​

value is ContentBlock

Released under the MIT License.