public virtual void WriteModuleContent(StringBuilder result, TsModule module) { foreach (var type in module.Types) { WriteType(result, type); } }
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>(); }
public virtual void WriteModule(StringBuilder result, TsModule module) { result.Append($"export module {module.Name} {{\r\n"); WriteModuleContent(result, module); result.Append("}\r\n"); }