bytesbay / web3-token

Web3 Token is a new way to authenticate users in a hybrid dApps using signed messages. Implementation of EIP-4361.
380 stars 50 forks source link

Enhance typescript support #16

Closed art049 closed 2 years ago

art049 commented 2 years ago

Hello, I tried using the package with typescript but it seemed that the definition file was not totally working.

This PR copies the d.ts file to the dist file during the build process.

It also enhances the typings a bit to include the return types (it's only partial for the return body though).

Tell me what you think :)

bytesbay commented 2 years ago

Thanks! I hoped someone will do it, great work 🤝