ottypes / json1

This is an operational transform type replacement for ottypes/json0
316 stars 27 forks source link

Typo in readme #37

Open siliconjungle opened 3 years ago

siliconjungle commented 3 years ago

const op = [ json1.insertOp([], {title: '', contents: '', public: false}), json1.editOp(['title'], 'text-unicode', ['My cool blog entry']), json1.replaceOp(['public', false, true]) ].reduce(json1.type.compose, null)

Should be const op = [ json1.insertOp([], {title: '', contents: '', public: false}), json1.editOp(['title'], 'text-unicode', ['My cool blog entry']), json1.replaceOp(['public'], false, true) ].reduce(json1.type.compose, null)

josephg commented 3 years ago

Aah good catch. PR and I’ll merge it