msgpack-node icon indicating copy to clipboard operation
msgpack-node copied to clipboard

DefinitelyTyped for msgpack-node

Open yohei1126 opened this issue 8 years ago • 2 comments

I am using msgpack-node with TypeScript. so I need types file for TypeScript code so that I can import msgpack-node from TypeScript code. https://basarat.gitbooks.io/typescript/content/docs/types/@types.html Although, msgpack-node does not have DefinitelyTyped and there is inconsistency between npm module and DefinitelyTyped.

  • "npm install msgpack" installs msgpack-node https://www.npmjs.com/package/msgpack

  • "npm install @types/msgpack" installs DefinitelyTyped file for msgpack-javascript https://www.npmjs.com/package/@types/msgpack

I also added an issued here https://github.com/DefinitelyTyped/DefinitelyTyped/issues/14157 Are there any solutions for this?

yohei1126 avatar Jan 21 '17 01:01 yohei1126

if my understanding is correct, definitelytyped module and npm module must be the same name.

yohei1126 avatar Jan 21 '17 02:01 yohei1126

I encountered the same issue, and I ended up writing a typescript definition file for msgpack-node myself.

llint avatar Feb 11 '18 07:02 llint