3 ms·
Unless I'm mistaken, according to their own TS types[0], `Automerge.merge` should return a `{ readonly [P in keyof T]: Freeze<T[P]> }`. Getting `undefined` here
by folkrav 5y ago
Unless I'm mistaken, according to their own TS types[0], `Automerge.merge` should return a `{ readonly [P in keyof T]: Freeze<T[P]> }`. Getting `undefined` here is probably a bug.
[0] https://github.com/automerge/automerge/blob/main/%40types/automerge/index.d.ts#L368 https://github.com/automerge/automerge/blob/main/%40types/au...
- Tade0 5y agoI think that undefined at the end is not related to my code - it's there before those console logs appear and they're appended to the start of this table. In any case I get the same result locally: I suspected doc2.cards would have length: 2, but it's only 1. I couldn't explain why so I rolled my own conflict-resolution scheme that fit my particular use case. It's primitive and doesn't actually give any guarantees, but gets the job done.