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

Getter and setter using constructor too #60

Open
lmame opened this issue Apr 3, 2018 · 0 comments · May be fixed by #65
Open

Getter and setter using constructor too #60

lmame opened this issue Apr 3, 2018 · 0 comments · May be fixed by #65

Comments

@lmame
Copy link

lmame commented Apr 3, 2018

Hi :)

Would it be possible to allow Getter / Setter generation from the constructor as well rather than only class declaration?

For example extension works great if declaring the vars:

export class test{  
    private arg1: number;  
    private arg2: number;  
    // ...  
}

But It also possible to do the same in the constructor method:

export class test{
    constructor(private arg1: number, private arg2: number) {
    }
    // ...
}

It would be cool if the extension would detect the second version as well ^_^

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

Successfully merging a pull request may close this issue.

1 participant