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