What’s the best way of going about creating new typedefs for a JS library which doesn’t have JSDoc type definitions?
I’d like to create typedefs for OpenTypeJS[1] but there’s no comments to help. The only two ways I can think of are: 1. Go into the JS code and manually add comments for everything (and then do a pull request). Then use externc to produce a swc. 2. Create ActionScript stubs for all the functions and use compc to create a swc. Is there another option (or tool to make it easier) that I’m missing? Which of these two approaches makes more sense? [1]https://github.com/nodebox/opentype.js/
