Skip to content

Commit

Permalink
updating message_type
Browse files Browse the repository at this point in the history
  • Loading branch information
NiranjanaBinoy committed Sep 18, 2024
1 parent cb2e49a commit 54ab602
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/scripts/lib/rpc-method-middleware/handlers/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { MessageType } from '../../../../../shared/constants/app';

export type HandlerWrapper = {
methodNames: [string] | string[];
methodNames: [MessageType] | MessageType[];
hookNames: Record<string, boolean>;
};
2 changes: 2 additions & 0 deletions shared/constants/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ export const MESSAGE_TYPE = {
///: END:ONLY_INCLUDE_IF
} as const;

export type MessageType = (typeof MESSAGE_TYPE)[keyof typeof MESSAGE_TYPE];

///: BEGIN:ONLY_INCLUDE_IF(keyring-snaps)
export const SNAP_MANAGE_ACCOUNTS_CONFIRMATION_TYPES = {
confirmAccountCreation: 'snap_manageAccounts:confirmAccountCreation',
Expand Down

0 comments on commit 54ab602

Please sign in to comment.