Fix compile-time error in new TypeScript version.

This commit is contained in:
Richard Moore 2021-10-05 15:48:14 -04:00
parent 68095a48ae
commit bee76a49b2
No known key found for this signature in database
GPG Key ID: 665176BE8E9DC651
2 changed files with 3 additions and 1 deletions

View File

@ -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 } = {

View File

@ -1,5 +1,7 @@
"use strict";
import type { Transport } from "@ledgerhq/hw-transport-node-hid";
export type TransportCreator = {
create: () => Promise<Transport>;
};