Provide type hints to monaco editor
问题 I am trying to provide intellisense / code completion into a javascript editor using the Monaco editor. The code needs to be valid javascript, not typescript. Given some user entered script like this: function onMyEvent(event) { event.someProperty } I want to provide code completion on the event parameter, which is a typescript class I have the t.ds of, and can infer at runtime. Ideally, I would just like to tell Monaco that the type of event is SomeEventClass , and let it do the rest. Even