Skip to content

Commit

Permalink
chore: bridge controller types readability
Browse files Browse the repository at this point in the history
  • Loading branch information
micaelae committed Oct 28, 2024
1 parent c195cfe commit 9c78fb2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/scripts/controllers/bridge/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,16 @@ type BridgeControllerEvents = ControllerStateChangeEvent<
BridgeControllerState
>;

type AllowedActions = AccountsControllerGetSelectedAccountAction['type'];
type AllowedEvents = never;

/**
* The messenger for the BridgeController.
*/
export type BridgeControllerMessenger = RestrictedControllerMessenger<
typeof BRIDGE_CONTROLLER_NAME,
BridgeControllerActions | AccountsControllerGetSelectedAccountAction,
BridgeControllerEvents,
AccountsControllerGetSelectedAccountAction['type'],
never
AllowedActions,
AllowedEvents
>;

0 comments on commit 9c78fb2

Please sign in to comment.