Class UnionWriter

java.lang.Object
com.vaadin.hilla.generator.typescript.UnionWriter

public final class UnionWriter extends Object
Writes the file saying which of its subtypes a value of a polymorphic type can be, which is what lets TypeScript tell them apart by the discriminator.
  • Field Details

    • SUFFIX

      public static final String SUFFIX
      The suffix both the file and the type of a union go by, on top of the name of the type the subtypes belong to.
      See Also:
  • Constructor Details

    • UnionWriter

      public UnionWriter()
  • Method Details