(
records: TLRecord[],
others: Partial<Omit<RoomSnapshot, 'documentClock'>> = {}
)
| 94 | |
| 95 | // Helper to create legacy snapshots without a documentClock field |
| 96 | const makeLegacySnapshot = ( |
| 97 | records: TLRecord[], |
| 98 | others: Partial<Omit<RoomSnapshot, 'documentClock'>> = {} |
| 99 | ) => ({ |
| 100 | documents: records.map((r) => ({ state: r, lastChangedClock: 0 })), |
| 101 | clock: 0, |
| 102 | ...others, |
| 103 | }) |
| 104 | |
| 105 | const oldArrow: TLBaseShape<'arrow', Omit<TLArrowShapeProps, 'labelColor'>> = { |
| 106 | typeName: 'shape', |
no outgoing calls
no test coverage detected
searching dependent graphs…