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

Create member class #1

Open
AbraaoAlves opened this issue May 28, 2016 · 2 comments
Open

Create member class #1

AbraaoAlves opened this issue May 28, 2016 · 2 comments

Comments

@AbraaoAlves
Copy link

Like Webstorm and VisualStudio, write dreamcode before it there!

[ ] Fields
[ ] Methods

Exemple:

Before:

class Foo {
  constructor(){
    this.bar = "test";

    this.init();
  }
}

After:

class Foo {
  bar:string;
  constructor(){
    this.bar = "test";
  }
  init(): void{

  }
}
@krizzdewizz
Copy link
Owner

Hi, thanks a lot for your suggestions! This is very desirable to have. It would introduce a kind of "Quick Fix" feature. Technically, it seems best to try to analyze tsc error messages, such as Property 'bar' does not exist on type 'Foo', and suggest fixes based on those messages. I will look into that.

@krizzdewizz
Copy link
Owner

TypeScript has plans for quick fix support in 2.1.
microsoft/TypeScript#6943
and will most certainly be included in VS Code. Let's await and decide later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants