Typescript to PlantUML
Will convert a Typescript file to a PlantUML file. Following all inheritances.
npm install --global tplant
tplant --input sample/Classes/Greeter.ts --output sample/Classes/Greeter.puml
Define the path of the Typescript file
Define the path of the output file. If not defined, it'll output on the STDOUT
Compile a project given a valid configuration file.
The argument can be a file path to a valid JSON configuration file, or a directory path to a directory containing a tsconfig.json file.
Create not heritage compositions.
Example:
class Wheel {
public size: number;
}
class Car {
public wheel: Wheel;
}
@startuml
class Wheel {
+size: number
}
class Car {
+wheel: Wheel
}
Car *-- Wheel
@enduml
Only output interfaces
https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API