monaco-react icon indicating copy to clipboard operation
monaco-react copied to clipboard

Description how to load external libraries

Open sesigl opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe. I try to load external type definitions, more concrete this example from the official monaco playground.

https://microsoft.github.io/monaco-editor/playground.html#extending-language-services-configure-javascript-defaults

I don't get it done to addExtraLib and to create a model with the registered libraries.

Describe the solution you'd like An example how to load external type definitions and libraries.

Describe alternatives you've considered Just don't use typescript, and use javascript instead.

Additional context Add any other context or screenshots about the feature request here. The background is, I would like to provide the possibility to write Jest tests using the editor, and I want to have proper autocompletion in the typescript editior.

sesigl avatar Nov 19 '22 20:11 sesigl