vansimke / DojoTypeDescriptionGenerator

Application written in ASP.NET (C#) and TypeScript to read the dojo api (http://dojotoolkit.org/api) and generate initial TypeScript definition files
Apache License 2.0
3 stars 1 forks source link

module "dijit/popup" is not generated #8

Open benjamin-hg opened 9 years ago

vansimke commented 9 years ago

Just FYI, this generator was used to get the type definitions to an 80% level. The rest, I hand-tuned and submitted to Definitely Typed (https://github.com/borisyankov/DefinitelyTyped). I currently have no plans on improving this to get it to be a 100% solution do to its dependency on the documentation, which has errors of its own. If you feel you can take this further, please feel free to fork it. If you see errors in the typedefs, please fork DefinitelyTyped and make corrections there.

benjamin-hg commented 9 years ago

Hi @vansimke, thanks for the reply. At least, I've documented that there are some issues so that others may address them.

sedwards2009 commented 9 years ago

In that case, when I find some time I'll probably fork the generator and just take the .ts files which do the actual conversion and turn it into a little node.js (or io.js!) program which everyone can easily run and fix. Adding a way of specifying patches to go on top of the json file from Dojo would also be a priority.

vansimke commented 9 years ago

I think that sounds like an excellent idea. I had a very specific goal in mind with this project and I achieved it. If you have a grander vision, then it would be cool to see you take it there. Maybe there us something to this open source thing after all...

sedwards2009 commented 9 years ago

I've got something up now at https://github.com/sedwards2009/dojo-typescript-api . It processes the big json file which js-doc-parse outputs. It describes the Dojo API. This approach doesn't require much code which makes the generation quite easy to understand and modify. I haven't tried pushing the big output .d.ts file through the tsc compiler yet, but smaller subsets of the API do compile at least. I don't think what I have is quite up to parity with DojoTypeDescriptionGenerator yet, but I intend to keep chipping away at the problem. Contributions are certainly welcome.

ca0v commented 8 years ago

I was hoping someone would take ownership of this project but are we in agreement, with dojo2 on the horizon, that it is best to hand-code the d.ts files at this point? I will try to figure out how to create a pull request which contains dojo-tests.ts and a very minor fix to dojo.d.ts (for now). I have dozens of changes I'd like to see pulled but I'll start with that. Good plan?