bafolts / plantcode

Provides a javascript utility to generate code in various languages given a plantuml class diagram.
https://segmentationfaults.com/plantcode
MIT License
217 stars 42 forks source link

Property name and type are reversed in Typescript #38

Closed GillisWerrebrouck closed 2 years ago

GillisWerrebrouck commented 2 years ago

UML:

@startuml
    class SomeClass {
        - someValue string
    }
@enduml

Generated code:

class SomeClass {
  private string : someValue;
}

Expected code:

class SomeClass {
  private someValue : string;
}
bafolts commented 2 years ago

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 commented 2 years ago

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