Sanity Library Reference Docs
    Preparing search index...

    Type Alias CommentAnchorBeta

    CommentAnchor: CollaborationCommentAnchor

    Where a comment attaches inside a Portable Text field, as an offset into each end of the run of text it covers.

    This is the write side of CommentTextSelection: pass an anchor when creating or re-anchoring a comment, and read the selection the API resolved it into.

    Its optional fieldValue is the text the offsets count into, for an editor holding changes the server has not seen. See CommentFieldValue.