diff options
Diffstat (limited to 'packages/subproviders/src/globals.d.ts')
-rw-r--r-- | packages/subproviders/src/globals.d.ts | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/packages/subproviders/src/globals.d.ts b/packages/subproviders/src/globals.d.ts index 238d9be78..e258ef947 100644 --- a/packages/subproviders/src/globals.d.ts +++ b/packages/subproviders/src/globals.d.ts @@ -39,6 +39,7 @@ interface LedgerTransport { declare module '@ledgerhq/hw-app-eth' { class Eth { + public transport: LedgerTransport; constructor(transport: LedgerTransport); public getAddress( path: string, @@ -48,10 +49,10 @@ declare module '@ledgerhq/hw-app-eth' { public signTransaction(path: string, rawTxHex: string): Promise<ECSignatureString>; public getAppConfiguration(): Promise<{ arbitraryDataEnabled: number; version: string }>; public signPersonalMessage(path: string, messageHex: string): Promise<ECSignature>; - transport: LedgerTransport; } export default Eth; } + declare module '@ledgerhq/hw-transport-u2f' { export default class TransportU2F { public static create(): Promise<LedgerTransport>; @@ -59,6 +60,13 @@ declare module '@ledgerhq/hw-transport-u2f' { } } +declare module '@ledgerhq/hw-transport-node-hid' { + export default class TransportNodeHid { + public static create(): Promise<LedgerTransport>; + public close(): Promise<void>; + } +} + // Semaphore-async-await declarations declare module 'semaphore-async-await' { class Semaphore { |