Swap with USB libs (#400)

This commit is contained in:
Jaco Greeff
2020-11-10 22:31:26 +01:00
committed by GitHub
parent 03db260ed6
commit 1e2fdfba58
5 changed files with 44 additions and 29 deletions
+16
View File
@@ -0,0 +1,16 @@
// Copyright 2017-2020 @polkadot/ledger authors & contributors
// SPDX-License-Identifier: Apache-2.0
declare module '@ledgerhq/hw-transport-node-hid-noevents' {
import Transport from '@ledgerhq/hw-transport';
export default class TransportNodeHidNoEvents extends Transport<string> {}
export function getDevices(): Array<unknown>
}
declare module '@ledgerhq/hw-transport-node-hid-singleton' {
import TransportNodeHidNoEvents, { getDevices } from '@ledgerhq/hw-transport-node-hid-noevents';
export default class TransportNodeHid extends TransportNodeHidNoEvents { }
}