public class TypeScriptGenerator
extends java.lang.Object
| Constructor and Description |
|---|
TypeScriptGenerator() |
| Modifier and Type | Method and Description |
|---|---|
void |
generateTypeScript(java.lang.Class<? extends java.lang.annotation.Annotation> serviceAnnotation,
java.io.File tsOutputDir)
Generates single typescript file containing typescript interfaces definition created from
service definition.
|
void |
generateTypeScript(java.util.Collection<java.lang.Class<?>> classes,
java.lang.Class<? extends java.lang.annotation.Annotation> serviceAnnotation,
java.io.File tsOutputDir)
Generates single typescript file containing typescript interfaces definition created from
service definition.
|
public void generateTypeScript(java.lang.Class<? extends java.lang.annotation.Annotation> serviceAnnotation,
java.io.File tsOutputDir)
throws java.io.IOException
serviceAnnotation - Service annotation to locate interfaces for typescript conversion.tsOutputDir - Output generation directory.java.io.IOException - An exception occurred while writing typescript.public void generateTypeScript(java.util.Collection<java.lang.Class<?>> classes,
java.lang.Class<? extends java.lang.annotation.Annotation> serviceAnnotation,
java.io.File tsOutputDir)
throws java.io.IOException
classes - Colelction of classes which are to be exported to typescript.serviceAnnotation - Service annotation to locate interfaces for typescript conversion.tsOutputDir - Output generation directory.java.io.IOException - An exception occurred while writing typescript.Copyright © 2022. All rights reserved.