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

DojoTypeDescriptionGenerator

Application written in ASP.NET (C#) and TypeScript to read the dojo api (http://dojotoolkit.org/api) and generate initial TypeScript definition files.

Requirements:

Usage:

This project was intended to serve as a first step toward creating type definitions for the massive dojo framework. The final .d.ts files comprise about 500 KLOC including comments, etc. This was never intended to get the type definition files all of the way there. After the generator runs, hand-polishing is required in order to address the natural errors that come from human generated help files being used to generate a strongly typed set of definitions. It should get you most of the way there.

Note: the application is currently hard coded to download version 1.9 of the API. To change this, find the path "data/1.9/tree.json" in the main.ts (line 53 as of this writing) and update to whatever you want.