microsoft / dts-gen

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

crash when gen dts for bsv module #181

Open zhfnjust opened 1 year ago

zhfnjust commented 1 year ago
npm install -g bsv@1.5.6

dts-gen -m bsv --overwrite

error:

hh@192 bsv % dts-gen -m bsv --overwrite                                     
Unexpected crash! Please log a bug with the commandline you specified.
/Users/hh/.nvm/versions/node/v16.16.0/lib/node_modules/dts-gen/bin/lib/run.js:126
        throw e;
        ^

Error: Invalid y value for curve.
    at Point.validate (/Users/hh/.nvm/versions/node/v16.16.0/lib/node_modules/bsv/lib/crypto/point.js:120:11)
    at new PresetCurve (/Users/hh/.nvm/versions/node/v16.16.0/lib/node_modules/bsv/node_modules/elliptic/lib/elliptic/curves.js:22:17)
    at Object.get [as p192] (/Users/hh/.nvm/versions/node/v16.16.0/lib/node_modules/bsv/node_modules/elliptic/lib/elliptic/curves.js:32:19)
    at getProperty (/Users/hh/.nvm/versions/node/v16.16.0/lib/node_modules/dts-gen/bin/lib/index.js:256:30)
    at Array.map (<anonymous>)
    at getPropertyDeclarationsOfObject (/Users/hh/.nvm/versions/node/v16.16.0/lib/node_modules/dts-gen/bin/lib/index.js:252:25)
    at getTypeOfValue (/Users/hh/.nvm/versions/node/v16.16.0/lib/node_modules/dts-gen/bin/lib/index.js:239:33)
    at getProperty (/Users/hh/.nvm/versions/node/v16.16.0/lib/node_modules/dts-gen/bin/lib/index.js:259:45)
    at Array.map (<anonymous>)
    at getPropertyDeclarationsOfObject (/Users/hh/.nvm/versions/node/v16.16.0/lib/node_modules/dts-gen/bin/lib/index.js:252:25)