diff --git a/src/ledger-mobile-bridge.ts b/src/ledger-mobile-bridge.ts index 69affee2..59951cd9 100644 --- a/src/ledger-mobile-bridge.ts +++ b/src/ledger-mobile-bridge.ts @@ -1,12 +1,10 @@ import ledgerService from '@ledgerhq/hw-app-eth/lib/services/ledger'; import type Transport from '@ledgerhq/hw-transport'; -// eslint-disable-next-line import/no-nodejs-modules import { GetPublicKeyParams, GetPublicKeyResponse, LedgerBridge, - LedgerBridgeOptions, LedgerSignMessageParams, LedgerSignMessageResponse, LedgerSignTransactionParams, @@ -21,7 +19,8 @@ import { LedgerMobileBridgeOptions, } from './type'; -export type MobileBridge = LedgerBridge & { +// MobileBridge Type will always use LedgerBridge with LedgerMobileBridgeOptions +export type MobileBridge = LedgerBridge & { getAppNameAndVersion(): Promise; openEthApp(): Promise; closeApps(): Promise; @@ -30,9 +29,7 @@ export type MobileBridge = LedgerBridge & { /** * LedgerMobileBridge is a bridge between the LedgerKeyring and the LedgerTransportMiddleware. */ -export class LedgerMobileBridge - implements MobileBridge -{ +export class LedgerMobileBridge implements MobileBridge { #transportMiddleware?: TransportMiddleware; #opts: LedgerMobileBridgeOptions;