diff --git a/src/ledger-iframe-bridge.test.ts b/src/ledger-iframe-bridge.test.ts index 161eaf69..c2c69dae 100644 --- a/src/ledger-iframe-bridge.test.ts +++ b/src/ledger-iframe-bridge.test.ts @@ -1,6 +1,7 @@ import { hasProperty } from '@metamask/utils'; import { + type IFrameMessageResponse, IFrameMessageAction, LedgerIframeBridge, } from './ledger-iframe-bridge'; @@ -62,7 +63,7 @@ describe('LedgerIframeBridge', function () { */ function stubKeyringIFramePostMessage( bridgeInstance: LedgerIframeBridge, - fn: (message: any) => void, + fn: (message: IFrameMessageResponse) => void, ) { if (!isIFrameValid(bridgeInstance.iframe)) { throw new Error('the iframe is not valid');