Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a way to annotate global 'this' type in JS/TS #2361

Closed
Thomasan1999 opened this issue Feb 22, 2021 · 2 comments
Closed

Add a way to annotate global 'this' type in JS/TS #2361

Thomasan1999 opened this issue Feb 22, 2021 · 2 comments
Labels
feature-request Request for new features or functionality typescript

Comments

@Thomasan1999
Copy link

Thomasan1999 commented Feb 22, 2021

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.

@alexdima alexdima added typescript feature-request Request for new features or functionality labels Feb 26, 2021
@y912765390
Copy link

Has it been resolved? I have the same problem

@hediet
Copy link
Member

hediet commented Feb 28, 2023

Duplicate of #1661

@hediet hediet marked this as a duplicate of #1661 Feb 28, 2023
@hediet hediet closed this as not planned Won't fix, can't repro, duplicate, stale Feb 28, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Apr 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality typescript
Projects
None yet
Development

No branches or pull requests

4 participants