Skip to content

Commit 1ceb6db

Browse files
Fix typos
1 parent ff7a868 commit 1ceb6db

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/snaps-rpc-methods/src/permitted/getInterfaceContext.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { rpcErrors } from '@metamask/rpc-errors';
44
import type {
55
GetInterfaceContextParams,
66
GetInterfaceContextResult,
7-
InterfaceState,
7+
InterfaceContext,
88
JsonRpcRequest,
99
} from '@metamask/snaps-sdk';
1010
import { type InferMatching } from '@metamask/snaps-utils';
@@ -20,9 +20,9 @@ const hookNames: MethodHooksObject<GetInterfaceContextMethodHooks> = {
2020
export type GetInterfaceContextMethodHooks = {
2121
/**
2222
* @param id - The interface ID.
23-
* @returns The interface state.
23+
* @returns The interface context.
2424
*/
25-
getInterfaceContext: (id: string) => InterfaceState;
25+
getInterfaceContext: (id: string) => InterfaceContext | null;
2626
};
2727

2828
export const getInterfaceContextHandler: PermittedHandlerExport<
@@ -53,7 +53,7 @@ export type GetInterfaceContextParameters = InferMatching<
5353
* function.
5454
* @param end - The `json-rpc-engine` "end" callback.
5555
* @param hooks - The RPC method hooks.
56-
* @param hooks.getInterfaceContext - The function to get the interface state.
56+
* @param hooks.getInterfaceContext - The function to get the interface context.
5757
* @returns Noting.
5858
*/
5959
function getInterfaceContextImplementation(

0 commit comments

Comments
 (0)