-
Notifications
You must be signed in to change notification settings - Fork 10
Auto-generating descriptors from @types/three .d.ts files? #36
Comments
I also had a very quick look at extracting properties from the docs html, but there are some inconsistencies because they're manually curated https://github.com/johnrees/three-docs-parser/blob/master/index.js |
This is awesome!!
…On Wed, Oct 25, 2017, 19:04 John Rees ***@***.***> wrote:
I also had a very quick look at extracting properties from the docs html,
but there are some inconsistencies because they're manually curated
https://github.com/johnrees/three-docs-parser/blob/master/index.js
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#36 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA0iLQOqV6abgz7c-X3MyEGDMC-ZMwuGks5sv3fBgaJpZM4QGafP>
.
|
And yes it'd be very useful to work on this. Let's do that together? :) |
continuing on from https://github.com/johnrees/three-parser and related to firtoz#36
Fantastic, yes that would be great! Not sure the best way to tackle this but I started a PR with some info here 0569dda#diff-370a1a3a7683bd722dc6d74ff5984f61 I guess it makes sense to keep the work in the main repository. Although it should go to a new topic branch rather than master #38 |
The README is garbage and probably doesn't make a great deal of sense haha I was just spewing out what was in my head 😬 |
Great work :) I'm going to take a break for a few days but when I come back this is the first thing I'll look at! |
continuing on from https://github.com/johnrees/three-parser and related to firtoz#36
I think you might be able to generate descriptors (or anything really) by walking the AST of the
@types/three
.d.ts files. They'll probably still need extra 'human work' but maybe it could be a good starting point?This is an extremely fragile proof of concept that can quickly spit out files like https://github.com/johnrees/three-parser/blob/master/descriptors/geometries/sphereGeometry.ts. Its current major shortcomings are -
What do you think @toxicFork? Would it be useful if I worked on this?
The text was updated successfully, but these errors were encountered: