Class TypeScriptWriter
java.lang.Object
com.vaadin.hilla.generator.typescript.TypeScriptWriter
Deprecated.
Writes every file of one run of the generator: the client the endpoints call
the server with, a file per endpoint, the barrel naming them, and for each of
the types they refer to a declaration and the model a form binds it through,
along with a union for each polymorphic one.
The files are what the run produces rather than what is on disk: writing them out, and removing what a previous run left behind, is the work of whoever asks for them.
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Writes the files against the generated client.TypeScriptWriter(String clientModule) Deprecated. -
Method Summary
-
Constructor Details
-
TypeScriptWriter
public TypeScriptWriter()Deprecated.Writes the files against the generated client. -
TypeScriptWriter
Deprecated.- Parameters:
clientModule- the module exporting the client the endpoints call the server with, which is the generated one unless the application has one of its own, and then no client is generated
-
-
Method Details
-
write
Deprecated.
-
hilla-typescript-generatoris used only by Hilla itself, and may change or be removed in any release without notice. Do not use it in application code or libraries. It is marked deprecated only to make the compiler warn about such use.