We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
@ledgerhq/hw-transport-node-hid-singleton
default
6.31.5
The package exports are wrapped with an object with the default property. Reproduction:
test.mjs
import TransportNodeHid from '@ledgerhq/hw-transport-node-hid-singleton'; console.log('TransportNodeHid', TransportNodeHid);
node test.mjs
TransportNodeHid { default: [class TransportNodeHidSingleton extends TransportNodeHidNoEvents] { isSupported: [Function (anonymous)], list: [Function (anonymous)], listen: [Function (anonymous)] } }
This is getting worse in TypeScript. When I'm accessing TransportNodeHid.default I'm getting
TransportNodeHid.default
Property 'default' does not exist on type 'typeof TransportNodeHidSingleton'. ts(2339)
When I import the package by default, it shouldn't require me to add .default to get its payload.
.default
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Impacted Library name
@ledgerhq/hw-transport-node-hid-singleton
Impacted Library version
6.31.5
Describe the bug
The package exports are wrapped with an object with the
default
property. Reproduction:test.mjs
with a contentnode test.mjs
This is getting worse in TypeScript. When I'm accessing
TransportNodeHid.default
I'm gettingExpected behavior
When I import the package by default, it shouldn't require me to add
.default
to get its payload.Additional context
No response
The text was updated successfully, but these errors were encountered: