Skip to content

findCommentRanges

function findCommentRanges(doc): {
threadId: string;
} & DocRange[];

Defined in: comments/doc.ts:42

Walk every block and emit one entry per contiguous run of text that carries a comment mark, grouped by thread id. Runs never span blocks (each carries a single path). Order follows document order.

ParameterType
docDocumentNode

{ threadId: string; } & DocRange[]