Skip to content

Emit native ES6 classes with --target ES6 #2022

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

Closed
danquirk opened this issue Feb 12, 2015 · 3 comments
Closed

Emit native ES6 classes with --target ES6 #2022

danquirk opened this issue Feb 12, 2015 · 3 comments
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue

Comments

@danquirk
Copy link
Member

class A { foo: string; }
class B extends A { bar: string; }

compiling with --target ES6 currently still uses our own __extends and not ES6 classes.

@paleo
Copy link

paleo commented Mar 3, 2015

If a class is located in an internal module, is it possible to generate an ES6 class?

@DanielRosenwasser
Copy link
Member

@Tarh classes are just expressions in ES6, so there shouldn't be a problem as far as I can tell.

@yuit yuit closed this as completed Mar 17, 2015
@yuit
Copy link
Contributor

yuit commented Mar 17, 2015

The feature is implemented and pull into master. PR #2333

@mhegazy mhegazy added the Fixed A PR has been merged for this issue label Mar 17, 2015
@microsoft microsoft locked and limited conversation to collaborators Jun 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue
Projects
None yet
Development

No branches or pull requests

5 participants