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 want to use Monaco Editor to write body of a Vue component method. Therefore, this should refer to the Vue component itself but in the editor this refers to the window object and I did not find a way to annotate the this type globally. I could use another variable instead of this but that still leaves me with wrong autocomplete and TS errors when using this.
The text was updated successfully, but these errors were encountered:
I want to use Monaco Editor to write body of a Vue component method. Therefore,
this
should refer to the Vue component itself but in the editorthis
refers to thewindow
object and I did not find a way to annotate thethis
type globally. I could use another variable instead ofthis
but that still leaves me with wrong autocomplete and TS errors when usingthis
.The text was updated successfully, but these errors were encountered: