vojtechhabarta / typescript-generator

Generates TypeScript from Java - JSON declarations, REST service client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

creates 2 Interfaces if @Builder from lomok is used

dev-ale opened this issue · comments

Java
`@Value
@builder
public class Example{

@NonNull
Integer abc;
@Nullable
String name;

@NonNull
public Option<String> getName() {
    return Option.of(name);
}

}`

Typescript

export interface BetriebspunktViaGeplant {
  abc: number;
  name?: string;
}
export interface BetriebspunktViaGeplantBuilder {
  abc: number;
  name: string;
}

How can i change the output to just one interface: "BetriebspunktViaGeplant "