private-ip icon indicating copy to clipboard operation
private-ip copied to clipboard

Exported default function types not correct

Open vasco-santos opened this issue 4 years ago • 1 comments

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 https://github.com/libp2p/js-libp2p/issues/1019

vasco-santos avatar Nov 12 '21 09:11 vasco-santos

Hey @vasco-santos thanks for reporting this.

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

frenchbread avatar Nov 13 '21 19:11 frenchbread