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 with dts-gen on dynamodb module #92

Open apoco opened 6 years ago

apoco commented 6 years ago

I'm getting an unexpected crash when trying to generate a .d.ts for the dynamodb module:

$ dts-gen -m dynamodb --stdout
Unexpected crash! Please log a bug with the commandline you specified.
/home/jacob/.nvm/versions/node/v8.9.1/lib/node_modules/dts-gen/bin/lib/run.js:130
        throw e;
        ^

TypeError: Method get %TypedArray%.prototype.buffer called on incompatible receiver [object Object]
    at Uint8Array.get buffer [as buffer] (<anonymous>)
    at getProperty (/home/jacob/.nvm/versions/node/v8.9.1/lib/node_modules/dts-gen/bin/lib/index.js:254:30)
    at Array.map (<anonymous>)
    at getPropertyDeclarationsOfObject (/home/jacob/.nvm/versions/node/v8.9.1/lib/node_modules/dts-gen/bin/lib/index.js:250:25)
    at getTypeOfValue (/home/jacob/.nvm/versions/node/v8.9.1/lib/node_modules/dts-gen/bin/lib/index.js:237:33)
    at getResult (/home/jacob/.nvm/versions/node/v8.9.1/lib/node_modules/dts-gen/bin/lib/index.js:173:32)
    at getTopLevelDeclarations (/home/jacob/.nvm/versions/node/v8.9.1/lib/node_modules/dts-gen/bin/lib/index.js:123:17)
    at getResult (/home/jacob/.nvm/versions/node/v8.9.1/lib/node_modules/dts-gen/bin/lib/index.js:148:17)
    at getTopLevelDeclarations (/home/jacob/.nvm/versions/node/v8.9.1/lib/node_modules/dts-gen/bin/lib/index.js:123:17)
    at getResult (/home/jacob/.nvm/versions/node/v8.9.1/lib/node_modules/dts-gen/bin/lib/index.js:191:35)