msgpack-node
msgpack-node copied to clipboard
DefinitelyTyped for msgpack-node
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?
if my understanding is correct, definitelytyped module and npm module must be the same name.
I encountered the same issue, and I ended up writing a typescript definition file for msgpack-node myself.