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 to create my own custom IDE. I know typescriptServices is running in a web worker and provides intellisense. I want to be able to tell the intellisense engine to behave differently on some occasions. Something equivalent to Tern's server plugin's: infer.registerFunction.
My specific use-case is that I have a function that accepts a string and returns different types based on that string. I want to be able to tell the the intellisense engine, at runtime, that the return value for $('button1') is of type button.
Is there an API for this? Any workaround?
Thanks!
The text was updated successfully, but these errors were encountered:
Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.
Hey,
I'm using monaco-editor to create my own custom IDE. I know
typescriptServices
is running in a web worker and provides intellisense. I want to be able to tell the intellisense engine to behave differently on some occasions. Something equivalent to Tern's server plugin's: infer.registerFunction.My specific use-case is that I have a function that accepts a string and returns different types based on that string. I want to be able to tell the the intellisense engine, at runtime, that the return value for
$('button1')
is of type button.Is there an API for this? Any workaround?
Thanks!
The text was updated successfully, but these errors were encountered: