public static IEnumerable <string> CreateFiles(string outputDirectory, string subdirectory, bool forceOverwrite, params TypeScriptClassDefinition[] definitions)
        {
            foreach (var definition in definitions)
            {
                var codeBuilder = new TypeScriptClassBuilder
                {
                    OutputDirectory  = outputDirectory,
                    ForceOverwrite   = forceOverwrite,
                    ObjectDefinition = definition
                };

                codeBuilder.CreateFile(subdirectory);

                yield return(codeBuilder.FilePath);
            }
        }
Exemplo n.º 2
0
 public static void AddAttributes(this TypeScriptClassBuilder codeBuilder, int start)
 => AddAttributes(codeBuilder, codeBuilder.ObjectDefinition.Attributes, start);