Class TaskGenerateTypeScriptImpl

java.lang.Object
com.vaadin.hilla.internal.TaskGenerateTypeScriptImpl
All Implemented Interfaces:
com.vaadin.flow.server.frontend.FallibleCommand, com.vaadin.flow.server.frontend.TaskGenerateOpenAPI

public class TaskGenerateTypeScriptImpl extends Object implements com.vaadin.flow.server.frontend.TaskGenerateOpenAPI
Writes the TypeScript the browser calls the endpoints of the application through.

It is the TaskGenerateOpenAPI of the build because that is the task which runs while the browser callable classes are walked, which is when the writers have what they need. The task of the endpoints is left with nothing to do.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Walks the browser callable classes and writes the TypeScript of them.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.vaadin.flow.server.frontend.FallibleCommand

    setGeneratedFileSupport
  • Method Details

    • execute

      public void execute() throws com.vaadin.flow.server.frontend.ExecutionFailedException
      Walks the browser callable classes and writes the TypeScript of them.
      Specified by:
      execute in interface com.vaadin.flow.server.frontend.FallibleCommand
      Throws:
      com.vaadin.flow.server.frontend.ExecutionFailedException