typescript-generator
typescript-generator copied to clipboard
creates 2 Interfaces if @Builder from lomok is used
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 "
I have faced with the same issue. I've tried to use <excludePropertyAnnotation>lombok.Builder</excludePropertyAnnotation>
but it hasn't helped
Late, but... I did
<excludeClassPatterns>
<excludeClassPattern>**$*Builder</excludeClassPattern>
</excludeClassPatterns>
for such a case.