Export typedefinitions to ts that is not immediately used by the endpoints

I have an endpoint that returns a Flux that the client can listen to. And I send through a lot of different implementations of this SomeInterface. But the implementations are not exported to ts automatically as they do with all concrete references to classes. And can not find any documentation on how to do it. So how do I flag “@IncludeThisClassAsWellWhenGeneratingTypeFiles”?

One simple way is to create a dummy endpoint method where you list all the types as parameters. .

It sounds like you are talking about this issue https://github.com/vaadin/hilla/issues/438

A big heart is added to that issue :slightly_smiling_face: And I will create this dummy-method as the wonderful hack it is. Thank you greatly for the “solution” :slightly_smiling_face: