I know overloading is a rather rare (and kinda hacky) thing in Typescript, but still a thing that exists. At the moment, those functions will be exported incorrectly by tplant.
Example ts
export class Test {
move(dx: number, dy: number): string;
move(v: Vector2): string;
move(vordx: number | Vector2, dy?: number): string {
return "just a test";
}
}
export class Vector2{
public x: number;
public y: number;
}
What it currently looks like
@startuml
class Test {
+move(): dx: number, dy: number): string; (v: Vector2): string; }
}
class Vector2 {
+x: number
+y: number
}
@enduml
What it should look like
@startuml
class Test {
+move(dx: number, dy: number): string
+move(v: Vector2): string
}
class Vector2 {
+x: number
+y: number
}
@enduml
I know overloading is a rather rare (and kinda hacky) thing in Typescript, but still a thing that exists. At the moment, those functions will be exported incorrectly by tplant.
Example ts
What it currently looks like
What it should look like