Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Add option for generating index file #24
This PR would add the option
I just wonder: Would it be better to access
Thanks for the pull request!
I think it's worth moving the code that generates the index file from
I have one question though: do you need to use this functionality in your project? The thing I'm wondering about is: you usually generate many different classes for many different 'domains'/uses/categories (Angular components etc.) per one run (execution) of TypeGen. So I'm not sure if you need an index file with all files in the 'root' directory in most cases (as many of these files are unrelated to each other). Unless you need it for your project, in which case it makes sense to add this functionality (because others may use it this way too).
referenced this pull request
Jul 1, 2018
That's absolutely true, yesterday I struggled finding a suitable place, but I just had to make some small modifications (#25).
I'm using TypeGen for generating the typing of my web API (request and response objects). For each request written in my client code I import the relevant type definitions. Thankfully I don't have a second category of type definitions created from C#, so creating an index file works (also logically) just fine for reducing the size of the import list in my client code.