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

Breaks for multiple types of a memeber #11

Open
Shubham-Laddha opened this issue Oct 22, 2021 · 1 comment
Open

Breaks for multiple types of a memeber #11

Shubham-Laddha opened this issue Oct 22, 2021 · 1 comment

Comments

@Shubham-Laddha
Copy link

Shubham-Laddha commented Oct 22, 2021

When confronted with...

class Foo {
  private bar: string | number;
  private baz: number;
}

the tool should output the following

    public getBar(): string | number {
        return this.bar;
    }

    public getBaz(): number {
        return this.baz;
    }

but instead generates the following error -
Something went wrong! Try that the properties are in this format: "private name: string;"

@y0315219
Copy link

y0315219 commented Jul 5, 2022

i got this error too...

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

No branches or pull requests

2 participants