private void WriteInterface(TypeScriptWriter writer) { writer.IncIndent(); writer.StartLine("export interface I{0} {{\n", _type.Name.Replace("Controller", "Api")); using (writer.Indent()) { foreach (var method in _methods) { WriteMethodSignature(writer, method); writer.Append(";\n"); } } writer.StartLine("}\n"); }
public IndentScope(TypeScriptWriter writer) { _writer = writer; _writer.IncIndent(); }