@metamask/snaps-sdk
Version:
A library containing the core functionality for building MetaMask Snaps
1 lines • 605 B
Source Map (JSON)
{"version":3,"file":"get-interface-context.mjs","sourceRoot":"","sources":["../../../src/types/methods/get-interface-context.ts"],"names":[],"mappings":"","sourcesContent":["import type { InterfaceContext } from '../interface';\n\n/**\n * The request parameters for the `snap_getInterfaceContext` method.\n *\n * @property id - The interface id.\n */\nexport type GetInterfaceContextParams = {\n id: string;\n};\n\n/**\n * The result returned by the `snap_getInterfaceContext` method, which is the context for a given interface.\n */\nexport type GetInterfaceContextResult = InterfaceContext | null;\n"]}