> For the complete documentation index, see [llms.txt](/llms.txt).
> The full corpus is at [llms-full.txt](/llms-full.txt).

# getBlock

> **getBlock**(`snapshot`, `path`): \{ `node`: `PortableTextBlock`; `path`: `Path`; \} \| `undefined`

Defined in: is-block.ts:37

Get the node at the given path if it is a block.

Returns the node narrowed to PortableTextBlock, or undefined if the node
doesn't exist or is not a block.

## Parameters

### snapshot

`TraversalSnapshot`

### path

`Path`

## Returns

\{ `node`: `PortableTextBlock`; `path`: `Path`; \} \| `undefined`