But you can't access it in TypeScript, because it's missing from Op.
Ideally, we'd like to have an access to elemId to be able to "interpret" changes without using automerge methods (e.g. in a different runtime). Without elementID it becomes problematic (if not impossible).
So in this PR I've added elemId property to the list of attributes for a TS representation of Op.
Hey!
It looks like
elemId
is missing from TypeScript definition ofOp
.What's weird is that it's actually included in the JS object, e.g. if you do
JSON.stringify(operation)
:But you can't access it in TypeScript, because it's missing from
Op
.Ideally, we'd like to have an access to
elemId
to be able to "interpret" changes without using automerge methods (e.g. in a different runtime). WithoutelementID
it becomes problematic (if not impossible).So in this PR I've added
elemId
property to the list of attributes for a TS representation ofOp
.