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).
Parameters
Section titled “Parameters”snapshot
Section titled “snapshot”TraversalSnapshot
unknown
Path
Returns
Section titled “Returns”node is PortableTextObject