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

TypeScript definition should export a default function #1

Closed
steveluscher opened this issue Mar 31, 2022 · 1 comment · Fixed by #2
Closed

TypeScript definition should export a default function #1

steveluscher opened this issue Mar 31, 2022 · 1 comment · Fixed by #2

Comments

@steveluscher
Copy link

Repro:

  1. Add import hashprint from 'hashprintjs'; in a brand new Next.JS project.

Observe TypeScript error.

image

If the index.d.ts file read like this:

export default function GenerateHashprint(opts: Opts): Promise<string>;

…everything would work.

ndavd added a commit that referenced this issue Mar 31, 2022
@ndavd ndavd closed this as completed in #2 Mar 31, 2022
@ndavd
Copy link
Owner

ndavd commented Mar 31, 2022

Thanks! Should be working now :]

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

Successfully merging a pull request may close this issue.

2 participants