示例#1
0
 public virtual void WriteModuleContent(StringBuilder result, TsModule module)
 {
     foreach (var type in module.Types)
     {
         WriteType(result, type);
     }
 }
示例#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>();
 }
示例#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");
 }