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

Property name and type are reversed in Typescript #38

Closed
GillisWerrebrouck opened this issue Nov 11, 2021 · 2 comments
Closed

Property name and type are reversed in Typescript #38

GillisWerrebrouck opened this issue Nov 11, 2021 · 2 comments

Comments

@GillisWerrebrouck
Copy link

UML:

@startuml
    class SomeClass {
        - someValue string
    }
@enduml

Generated code:

class SomeClass {
  private string : someValue;
}

Expected code:

class SomeClass {
  private someValue : string;
}
@bafolts
Copy link
Owner

bafolts commented Nov 12, 2021

I am not that familiar with plant UML. Examples from here list the type first and the name second. This generator is assuming the type is listed first in plant UML.

@GillisWerrebrouck
Copy link
Author

My apologies, it should indeed be first the type and then the name. I'll close this issue.

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