microsoft / dts-gen

dts-gen creates starter TypeScript definition files for any module or library.
MIT License
2.43k stars 102 forks source link

dts-gen svg.js - Crash! #40

Open peterennis opened 7 years ago

peterennis commented 7 years ago

c:\ae\dts-gen>npm list svg.js c:\ae\dts-gen `-- svg.js@2.4.0

image

peterennis commented 7 years ago

c:\ae\dts-gen>dts-gen -m svg.js Wrote 3 lines to svg.js.d.ts.

The 3 lines are: /* Declaration file generated by dts-gen /

export = svg.js;

bondz commented 7 years ago

Try npm i source-map-support

peterennis commented 7 years ago

@bondz, no luck, same result :(

roblav96 commented 7 years ago

@peterennis any luck with this? all my attempts result in:

/** Declaration file generated by dts-gen */

export = deepstream.io;

😞

peterennis commented 7 years ago

@roblav96 read this thread: https://github.com/svgdotjs/svg.js/issues/597 At the end it describes some discovered limitations of dts-gen. I ran out of foo in dealing with it, sorry :-(