typings (*.d.ts) for jsxgraph?

147 views
Skip to first unread message

penah...@gmail.com

unread,
Sep 18, 2016, 7:25:20 PM9/18/16
to JSXGraph
Hi,

Are there TypeScript type declarations for jsxgraph?

Thanks,
Andreas

michael

unread,
Sep 22, 2016, 3:28:05 PM9/22/16
to JSXGraph, penah...@gmail.com
Hi Andreas,

none that I'm aware of.

It makes sense to generate these files from our source that is annotated with JSDoc comments. At least TypeScript can parse JSDoc and use it to generate d.ts files. The results when used on JSXGraph were a lot of compilation errors and an empty d.ts file. There are also a few 3rd party projects that try to achieve this [1]. Apparently, none are fully functional as of now. dtsmake is one those I tried but it also failed in JSXGraph (d.ts file with only one symbol was exported).

If anyone wants to feel free to take a look at the existing solutions and let us know if you can find a good one.


Best regards,

Michael

Reply all
Reply to author
Forward
0 new messages