Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add typescript definitions. #20

Open
MicahZoltu opened this issue May 2, 2020 · 1 comment
Open

Add typescript definitions. #20

MicahZoltu opened this issue May 2, 2020 · 1 comment

Comments

@MicahZoltu
Copy link

When using this library in a TypeScript project, the lack of definitions makes it difficult to use. The addition of a .d.ts file that specifies the public API would resolve this.

@PeterTheOne
Copy link

What I used for the hash function only:

declare module 'eth-ens-namehash' {
  const namehash = {
    hash: (input: string) => string,
  };
  export default namehash;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants