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

Exported default function types not correct #18

Open
vasco-santos opened this issue Nov 12, 2021 · 1 comment
Open

Exported default function types not correct #18

vasco-santos opened this issue Nov 12, 2021 · 1 comment

Comments

@vasco-santos
Copy link
Contributor

This module exports the default as not a function, which results on projects trying to compile typescript using this module as

Type 'typeof import("/home/trout/tmp/js-libp2p/node_modules/private-ip/lib/index")' has no call signatures.

Ref libp2p/js-libp2p#1019

@frenchbread
Copy link
Owner

Hey @vasco-santos thanks for reporting this.

I've opened a PR #19. Could you please check if it fixes the issue.

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