Vaadin Fusion: Is there a way to generate class files instead of interfaces

The Endpoints generate always interfaces. It there an option to change this?
Because TypeScript doesn’t support “instance of” for interfaces and my code would look really ugly if I’m force to use the TS way for that problem.

Hi, there is no option for that but if you can show a bit more what you want to accomplish, there might be another solution

if(whatEver instanceof SomeInterface) {
	var a = whatEver as SomeInterface;
	...
}

I know the other solution, but I don’t like it.
https://stackoverflow.com/questions/14425568/interface-type-check-with-typescript