Skip to content

Commit

Permalink
updating the types file
Browse files Browse the repository at this point in the history
  • Loading branch information
NiranjanaBinoy committed Jun 25, 2024
1 parent aac4215 commit c93945b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 156 deletions.
149 changes: 0 additions & 149 deletions app/scripts/lib/rpc-method-middleware/handlers/handlers-helper.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,13 @@ import type {
JsonRpcParams,
PendingJsonRpcResponse,
} from '@metamask/utils';
import { OriginString } from '@metamask/permission-controller';
import { MESSAGE_TYPE } from '../../../../../shared/constants/app';
import {
HandlerWrapper,
GetWeb3ShimUsageState,
SetWeb3ShimUsageRecorded,
} from './handlers-helper';
import { HandlerWrapper } from './types';

type LogWeb3ShimUsageOptions = {
getWeb3ShimUsageState: GetWeb3ShimUsageState;
setWeb3ShimUsageRecorded: SetWeb3ShimUsageRecorded;
getWeb3ShimUsageState: (origin: OriginString) => undefined | 1 | 2;
setWeb3ShimUsageRecorded: (origin: OriginString) => void;
};
type LogWeb3ShimUsageConstraint<Params extends JsonRpcParams = JsonRpcParams> =
{
Expand Down
4 changes: 4 additions & 0 deletions app/scripts/lib/rpc-method-middleware/handlers/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export type HandlerWrapper = {
methodNames: [string] | string[];
hookNames: Record<string, boolean>;
};

0 comments on commit c93945b

Please sign in to comment.