# getObservedBlockShape()

[**PromptScript API**](https://getpromptscript.dev/api-reference/index.md)

***

# Function: getObservedBlockShape()

> **getObservedBlockShape**(`block`): `"object"` \| `"text"` \| `"array"` \| `"mixed"`

Defined in: [core/src/block-shapes.ts:154](https://github.com/mrwogu/promptscript/blob/49aa50f943865b985366c4eda6e95c5a31ef39a6/packages/core/src/block-shapes.ts#L154)

Return the observed shape from canonical or compatibility AST input.

## Parameters

### block

[`BlockInput`](https://getpromptscript.dev/api-reference/core/src/type-aliases/BlockInput/index.md)

## Returns

`"object"` \| `"text"` \| `"array"` \| `"mixed"`