public static void CreateFiles(string outputDirectory, string subdirectory, bool forceOverwrite, params TypeScriptInterfaceDefinition[] definitions)
        {
            foreach (var definition in definitions)
            {
                var codeBuilder = new TypeScriptInterfaceBuilder
                {
                    OutputDirectory  = outputDirectory,
                    ForceOverwrite   = forceOverwrite,
                    ObjectDefinition = definition
                };

                codeBuilder.CreateFile(subdirectory);
            }
        }
 public static void AddAttributes(this TypeScriptInterfaceBuilder codeBuilder, int start)
 => AddAttributes(codeBuilder, codeBuilder.ObjectDefinition.Attributes, start);
Ejemplo n.º 3
0
 public static void AddAttributes(this TypeScriptInterfaceBuilder codeBuilder, StringBuilder output, Int32 start)
 => AddAttributes(codeBuilder, codeBuilder.ObjectDefinition.Attributes, output, start);