typescript-generator icon indicating copy to clipboard operation
typescript-generator copied to clipboard

creates 2 Interfaces if @Builder from lomok is used

Open dev-ale opened this issue 1 year ago • 2 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 "

dev-ale avatar Apr 21 '23 11:04 dev-ale

I have faced with the same issue. I've tried to use <excludePropertyAnnotation>lombok.Builder</excludePropertyAnnotation> but it hasn't helped

tomkeiev avatar Jul 25 '23 18:07 tomkeiev

Late, but... I did

 <excludeClassPatterns>
    <excludeClassPattern>**$*Builder</excludeClassPattern>
 </excludeClassPatterns>

for such a case.

michaelbub avatar Apr 04 '24 10:04 michaelbub