@mocanvas/editor · constant
declare const commentThreadRecordConfig: {
readonly type: "comment_thread";
readonly recordType: _mocanvas_store.RecordType<TLCommentThread, "anchor" | "authorId">;
}The commenting record types, in the shape createTLSchema({ records })
expects.
Commenting is opt-in: a document that never comments should not carry three unused record types in its schema, and — more importantly — should not record migration versions for them, because that would make the file unreadable by a build that does not know them.
``ts
createTLSchema({ records: { ...commentSchemaRecords } })
``
mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.