-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
var __extends
as --extends
CLI option
#7983
Comments
We already have a |
@DanielRosenwasser thanks, looks like it does the job. But I'm not sure what exactly that option does, I found in documentation:
So, I'm not sure what else besides |
That's a good point - it might not be quite as granular as you'd want. But here are all of the helpers TypeScript will currently emit. They're used for:
In any case, for now I think we'll close this (since the extra emit isn't so bad anyhow), but if it becomes a real issue, we can consider making things more granular. |
|
Check out #7270. |
Every time you extend a class in TypeScript this code is appended to the transpiled
.js
file:Here is a possible quick fix to allow developers remove this code and specify a global
__extends
function for all files. In TypeScript command line tool add an extra parameter--extends
that allows to provide the code for the__extends
function.For example:
This would output the
__extends
function as:The text was updated successfully, but these errors were encountered: