-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
Meta-issue: this
disambiguator
#513
Labels
Duplicate
An existing issue was already created
Meta-Issue
An issue about the team, or the direction of TypeScript
Suggestion
An idea for TypeScript
Comments
Closed
This was referenced May 22, 2015
It appears most all of these suggestions have merged into #3694 except for the last one. |
#3694 also covers the last one -- once you specify a |
#6739 covers most of the remaining pieces. |
RyanCavanaugh
added
the
Meta-Issue
An issue about the team, or the direction of TypeScript
label
Jun 15, 2021
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
Duplicate
An existing issue was already created
Meta-Issue
An issue about the team, or the direction of TypeScript
Suggestion
An idea for TypeScript
Do not discuss the details of these in this bug! Go to the appropriate linked issue to discuss them
This issue is to track all the various
this
proposals floating around and to distinguish them. Any comments here should be clarifying comments/questions.Specify
this
as a function return value#285
Let type definitions specify that the type of a field (or maybe just function return values) is the same as the type that contains the property.
Example:
Specify, as part of a function, the type of
this
inside the function body#229
Allow a syntax to specify the type of
this
as part of a function expression.Example:
Specify, as part of a function type, the type of
this
inside a function body(no issue yet, please leave a comment if you create one)
Allow a syntax to specify that when a function is invoked,
this
will be of a certain typeExample:
Specify the what valid
this
values are during function invocation#15
Add type system logic to detect when a method is being invoked without a proper
this
contextThe text was updated successfully, but these errors were encountered: