-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues in generated files #6
Comments
Can you point me to the source that generates the bad TS? usually if there is no generic arg to the Array class, it is because there was no type specification in the source jsdoc. |
Hi, This is the input file (I think) : https://raw.githubusercontent.com/Irrelon/ForerunnerDB/master/js/dist/fdb-all.js Thanks. |
Yeah we can assume I'll add an option that can be opted into that will fill holes like this with |
As for the other one (types inside of class declarations) that is definitely a bug here. According to this what I need to do is queue up these types and add them to a namespace of the same name as the class. Thanks for bringing this up! |
@englercj Confirming that approach solves the issue — I moved the types generated inside classes into a namespace of the same name as the class and it seems to make everything work, at least in terms of how |
Np, I'm working on v2 now. It adds some TS 2 features, uses a better emitter, and fixes a lot of these types of bugs. I should have it done over the next week or two (see #7). |
I take it v2 is not yet released ? ;) |
Nope, haven't had time to come back to this; been extremely busy at work. |
Getting closer on this, just a few more things to work out and I should be able to release v2 soon. Sorry its been so long :( |
Got the module declaration stuff working for inner classes and types, as well as fixing array/object definitions. I'll put out a v2 beta build shortly. |
Hi,
I'm just a user of forerunnerdb and they are using your tool to generate their types.d.ts file
I have pointed out a few issues on the generated file.
The generated file is here : https://github.com/Irrelon/ForerunnerDB/blob/master/typescript/types.d.ts
I would like to check with you if this is a bug in this tool, or maybe it's possible to improve their jsdoc in order to fix those generation issues.
Thanks for your help.
The text was updated successfully, but these errors were encountered: