Esempio n. 1
0
 public virtual void WriteModuleContent(StringBuilder result, TsModule module)
 {
     foreach (var type in module.Types)
     {
         WriteType(result, type);
     }
 }
Esempio n. 2
0
 public TsType(string type, string name, string baseType, List <string> interfaces, TsModule tsModule)
 {
     Type       = type;
     Name       = name;
     BaseType   = baseType;
     Interfaces = interfaces;
     TsModule   = tsModule;
     Properties = new List <TsProperty>();
 }
Esempio n. 3
0
 public virtual void WriteModule(StringBuilder result, TsModule module)
 {
     result.Append($"export module {module.Name} {{\r\n");
     WriteModuleContent(result, module);
     result.Append("}\r\n");
 }