Skip to content

PromptScript API


Function: getObservedBlockShape()

getObservedBlockShape(block): "object" | "array" | "text" | "mixed"

Defined in: core/src/block-shapes.ts:153

Return the observed shape from canonical or compatibility AST input.

Parameters

block

BlockInput

Returns

"object" | "array" | "text" | "mixed"