You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using monaco-editor with the typescript language, i wanted to add my own definitions and avoid standard es lib proposal in autocompletion.
So i used the compiler option noLib. Everything worked well until i tried to add a more complex function that need to infer type from and argument and force another argument to use inferred type.
I filed this issue because I don't know if it's a bug, a potential feature or even me that didn't read the docs well enough to make the editor do what i want.
The text was updated successfully, but these errors were encountered:
IamFonky
changed the title
Compiler option "noLib" only for autocompletion
Compiler option "noLib" for autocompletion without breaking intellisense
Nov 13, 2019
IamFonky
changed the title
Compiler option "noLib" for autocompletion without breaking intellisense
Compiler option "noLib" for autocompletion without breaking inference
Nov 18, 2019
There's a workaround I just discovered for replacing the default lib by adding an extra lib with a specific name, see the answer on stackoverflow for more info:
monaco-editor version:0.18.1
Browser:chrome/firefox/ie
OS:windows/linux
Hello!
I'm using monaco-editor with the typescript language, i wanted to add my own definitions and avoid standard es lib proposal in autocompletion.
So i used the compiler option noLib. Everything worked well until i tried to add a more complex function that need to infer type from and argument and force another argument to use inferred type.
plz see this stack overflow question
I filed this issue because I don't know if it's a bug, a potential feature or even me that didn't read the docs well enough to make the editor do what i want.
The text was updated successfully, but these errors were encountered: