Skip to content

Commit

Permalink
fix: remove AllowedActions and AllowedEvents export
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptodev-2s committed Nov 27, 2024
1 parent 0ec4c18 commit 4473585
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
7 changes: 1 addition & 6 deletions app/scripts/controllers/app-metadata.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import { ControllerMessenger } from '@metamask/base-controller';
import AppMetadataController, {
getDefaultAppMetadataControllerState,
type AppMetadataControllerOptions,
type AllowedActions,
type AllowedEvents,
} from './app-metadata';

describe('AppMetadataController', () => {
Expand Down Expand Up @@ -139,10 +137,7 @@ function withController<ReturnValue>(
): ReturnValue {
const [options = {}, fn] = args.length === 2 ? args : [{}, args[0]];

const controllerMessenger = new ControllerMessenger<
AllowedActions,
AllowedEvents
>();
const controllerMessenger = new ControllerMessenger<never, never>();

const messenger = controllerMessenger.getRestricted({
name: 'AppMetadataController',
Expand Down
4 changes: 2 additions & 2 deletions app/scripts/controllers/app-metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ export type AppMetadataControllerEvents = AppMetadataControllerStateChangeEvent;
/**
* Actions that this controller is allowed to call.
*/
export type AllowedActions = never;
type AllowedActions = never;

/**
* Events that this controller is allowed to subscribe.
*/
export type AllowedEvents = never;
type AllowedEvents = never;

/**
* Messenger type for the {@link AppMetadataController}.
Expand Down

0 comments on commit 4473585

Please sign in to comment.