Skip to content
Sheetwrite

Sheetwrite / Documentation

CommentAdapter@sheetwrite/core

Host persistence contract for versioned comment threads.

Host persistence contract for versioned comment threads.

Members 3

listComments
listComments(documentId: string, signal?: AbortSignal): Promise<CommentListResult>;
mutateComment
mutateComment(request: CommentMutationRequest): Promise<CommentMutationResponse>;
subscribeComments
subscribeComments?( documentId: string, listener: (event: VersionedCommentEvent) => void, signal?: AbortSignal, ): undefined | (() => void);

Declaration

View full TypeScript declaration
export interface CommentAdapter {
listComments(
documentId: string,
signal?: AbortSignal,
): Promise<CommentListResult>;
mutateComment(
request: CommentMutationRequest,
): Promise<CommentMutationResponse>;
subscribeComments?(
documentId: string,
listener: (event: VersionedCommentEvent) => void,
signal?: AbortSignal,
): undefined | (() => void);
}