Skip to content

Commit

Permalink
Fix compile-time error in new TypeScript version.
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Oct 5, 2021
1 parent 68095a4 commit bee76a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Expand Up @@ -3,7 +3,7 @@
import u2f from "@ledgerhq/hw-transport-u2f";

export type TransportCreator = {
create: () => Promise<Transport>;
create: () => Promise<u2f.Transport>;
};

export const transports: { [ name: string ]: TransportCreator } = {
Expand Down
2 changes: 2 additions & 0 deletions packages/hardware-wallets/src.ts/ledger-transport.ts
@@ -1,5 +1,7 @@
"use strict";

import type { Transport } from "@ledgerhq/hw-transport-node-hid";

export type TransportCreator = {
create: () => Promise<Transport>;
};
Expand Down

0 comments on commit bee76a4

Please sign in to comment.