Sanity Library Reference Docs
    Preparing search index...

    Type Alias CollaborationCommentAnchorAlpha

    Where in path a comment is anchored.

    For portable-text, each endpoint pairs the _key of a Portable Text block with a character offset into that block's plain text. An optional fieldValue is Portable Text covering the anchor. When set, the selection is resolved from those blocks instead of from the live document.

    type CollaborationCommentAnchor = {
        end: { _key: string; offset: number };
        fieldValue?: CollaborationCommentFieldValue;
        start: { _key: string; offset: number };
        type: "portable-text";
    }
    Index

    Properties

    end: { _key: string; offset: number }
    start: { _key: string; offset: number }
    type: "portable-text"