I'm using Angular 5 and typescript and included the code editor codemirror into my page.
I want to overwrite a nested functionality: Codemirror.hint.function
In javascript it looks like:
Codemirror.hint.function = function(param) = {
...
}
How can I do this in typescript? Because it is nested, I can't define a simple interface.
I want to define an own autocompletion for this editor.
solved it: Codemirror specific solution: Code: stackblitz