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

getContainerChildren

getContainerChildren(containers, node, parent?): { children: Node[]; container: RegisteredContainer; } | undefined

Defined in: get-container-children.ts:24

Resolve a container node’s editable child array.

Returns {children, container} for a node registered as a container: children is the node’s editable child array, and container is the node’s own container registration. Read container.field.name for the path segment that reaches children, and thread container back in as parent when descending into them.

Returns undefined for anything that is not a container: text blocks, spans, leaves, and unregistered objects. It is node-based and resolves in one step with no path re-walk, so recursive descent over containers is linear in nesting depth. The caller seeds the document root from context.value itself.

Containers

Node

RegisteredContainer

{ children: Node[]; container: RegisteredContainer; } | undefined