MCPcopy
hub / github.com/toeverything/AFFiNE / isDeletedRecord

Function isDeletedRecord

tools/doc-diff/src/table.ts:25–27  ·  view source on GitHub ↗
(record: YMap<any>)

Source from the content-addressed store, hash-verified

23}
24
25function isDeletedRecord(record: YMap<any>): boolean {
26 return record.get(DELETE_FLAG_KEY) === true || record.size === 0;
27}
28
29export function extractYjsTable(doc: Doc, keyField: string): TableExtract {
30 const recordsByKey = new Map<string, KeyedRecord>();

Callers 1

extractYjsTableFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected