@Test public void testObjectType() { final Settings settings = TestUtils.settings(); assertEquals("{ a: string; b: string | number; c: {}; d: { x: string; }; }", new TsType.ObjectType(Arrays.asList( new TsProperty("a", String), new TsProperty("b", new UnionType(Arrays.asList(String, Number))), new TsProperty("c", new ObjectType(Arrays.<TsProperty>asList())), new TsProperty("d", new ObjectType(Arrays.asList( new TsProperty("x", String) ))) )).format(settings)); }
@Override public abstract String format(Settings settings);
TsType implements Emittable { @Override public abstract String format(Settings settings); }
TsType implements Emittable { @Override public abstract String format(Settings settings);  }
TsType implements Emittable { @Override public abstract String format(Settings settings);  @Override boolean equals(Object rhs); @Override int hashCode(); TsType.OptionalType optional(); @Override abstract String format(Settings settings); @Override String toString(); static TsType transformTsType(Context context, TsType tsType, Transformer transformer); }
TsType implements Emittable { @Override public abstract String format(Settings settings);  @Override boolean equals(Object rhs); @Override int hashCode(); TsType.OptionalType optional(); @Override abstract String format(Settings settings); @Override String toString(); static TsType transformTsType(Context context, TsType tsType, Transformer transformer); static final TsType Any; static final TsType Boolean; static final TsType Number; static final TsType String; static final TsType Date; static final TsType Void; static final TsType Undefined; static final TsType Null; static final TsType Never; static final TsType Unknown; }