ottypes / json0

Version 0 of the JSON OT type
447 stars 64 forks source link

✨ Add support for `invertWithDoc` for subtypes #46

Open alecgibson opened 2 years ago

alecgibson commented 2 years ago

This change adds support for the optional, but recommended invertWithDoc(op, doc) -> op' method.

json0 itself already inverts fine without the doc, just using the invert() method, but this change adds support for subtypes, which only implement invertWithDoc().