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:
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?