Skip to content

Commit

Permalink
Fix any typing for message objects in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MajorLift committed Nov 7, 2023
1 parent a42abc7 commit 9307a30
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ledger-iframe-bridge.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { hasProperty } from '@metamask/utils';

import {
type IFrameMessageResponse,
IFrameMessageAction,
LedgerIframeBridge,
} from './ledger-iframe-bridge';
Expand Down Expand Up @@ -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');
Expand Down

0 comments on commit 9307a30

Please sign in to comment.