libp2p / js-peer-info

libp2p Peer abstraction Node.js implementation
https://libp2p.io
MIT License
37 stars 28 forks source link

Add Typescript typing #87

Closed robertkiel closed 4 years ago

robertkiel commented 4 years ago

I've created some incomplete typings for peer-info here:

https://github.com/hoprnet/hopr-types/blob/557f90622ac351b3e43ed4cb2b9ac9ff16930cc4/types/peer-info.d.ts

You might use them as a template file ;-)

vasco-santos commented 4 years ago

Hey @robertkiel

Thanks for sharing this, but we just got a PR with them merged on libp2p/js-peer-info#86

robertkiel commented 4 years ago

Alright. That's also fine. Could you also export the types in the package.json file by adding the line below?

"types": "src/index.d.ts"