jburzynski / TypeGen

Single-class-per-file C# to TypeScript generator
MIT License
195 stars 55 forks source link

Generated index file does not contain all types when both `generationSpecs` and `generateFromAssemblies` are used #197

Open dnasir opened 6 months ago

dnasir commented 6 months ago

I'm working on an API that use classes from an external library. In order to get it to work with TypeGen, I've had to resort to using GenerationSpec files, as opposed to TypeGen attributes. According to the docs,

To perform file generation from both attributes (in the specified assemblies) and generation specs, you can use the generateFromAssemblies config option.

While the types from both assembly classes and those declared in the generation spec files are generated, the generated index.ts file does not include the export statements for types generated from assembly classes.