Hi,
I’m trying to register a document change event call back on CodeMirror within an Angular Component. However, I get a typescript error when trying to do so saying that it was expecting two arguments instead of three. I’m using the following:
codeMirror: 5.42.2
@types/codemirror: 0.0.58
The code I use to register the call back is:
this.codeMirror.on(this.codeMirror.getDoc(), “change”, (doc, change) => this.handleChange(doc, change));
Can anyone please help?
Thanks
PM