This works up to a point, but the CodeMirror.EditorConfiguration interface does not appear to expose all of the option properties, e.g. height, parserfile, stylesheet etc.
I have installed @types/codemirror and have confirmed the above in the index.d.ts file.
Any guidance on where I am going wrong, or a better approach would be much appreciated.
We don’t maintain @types/codemirror, so I can’t vouch for its quality, but in general the current CodeMirror is really hard to express in a TypeScript typing — for example, the options object is an open set that can be extended by addons, which isn’t something you can describe cleanly in a .d.ts file. The design for version 6 addresses a lot of this, but for now, the recommendation is to just abuse TypeScript’s any type and type casts to make things pass the typechecker.
Hello Marijn, thank you for taking the time to respond - much appreciated.
I have made some progress with the general deployment in a TypeScript/WebPack build environment - see my StackOverflow post if it is of any help to anyone.