Fix compile-time error in new TypeScript version.
This commit is contained in:
parent
68095a48ae
commit
bee76a49b2
@ -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 } = {
|
||||
|
@ -1,5 +1,7 @@
|
||||
"use strict";
|
||||
|
||||
import type { Transport } from "@ledgerhq/hw-transport-node-hid";
|
||||
|
||||
export type TransportCreator = {
|
||||
create: () => Promise<Transport>;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user