Skip to content

Commit

Permalink
add class property on static exported classes
Browse files Browse the repository at this point in the history
  • Loading branch information
bsorrentino committed Jan 2, 2018
1 parent 268f00d commit bf4b092
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ public class TypescriptProcessor extends AbstractProcessorEx {
);

static final List<TSType> REQUIRED_CLASSES = Arrays.asList(
new TSType(java.lang.String.class),
new TSType(java.lang.String.class,true),
new TSType(java.lang.Iterable.class,true),
new TSType(java.util.Iterator.class,true),
new TSType(java.util.Collection.class),
new TSType(java.util.Collections.class, true),
new TSType(java.util.List.class),
Expand Down Expand Up @@ -432,6 +434,8 @@ private String processStatic( Class<?> type, java.util.Map<String, Class<?>> dec
sb.append("interface ")
.append( type.getSimpleName() )
.append("Static {\n\n")
//Append class property
.append("\treadonly class:any;\n")
;

methodSet.stream()
Expand Down

0 comments on commit bf4b092

Please sign in to comment.