Skip to content
This page is available as Markdown at /api/traversal/functions/isleafobject.md. For the full documentation index, see /llms.txt, or the complete corpus at /llms-full.txt.

isLeafObject

isLeafObject(snapshot, node, path): node is PortableTextObject

Defined in: is-leaf-object.ts:15

Check if a node is a leaf object: an object node that has no editable children (not a container). Returns true for block objects and inline objects that don’t have registered editable content (containers).

TraversalSnapshot

unknown

Path

node is PortableTextObject