This page is available as Markdown at /api/traversal/functions/getspan.md. For the full documentation index, see /llms.txt, or the complete corpus at /llms-full.txt.
getSpan
getSpan(
snapshot,path): {node:PortableTextSpan;path:Path; } |undefined
Defined in: get-span.ts:11
Get the span node at a given path.
Parameters
Section titled “Parameters”snapshot
Section titled “snapshot”TraversalSnapshot
Path
Returns
Section titled “Returns”{ node: PortableTextSpan; path: Path; } | undefined